37 sites, 16,005 entries and counting...     Get a free blog; Join a Weblog Network!
Top

Securing ajax request

September 30, 2008

Secure your request is very important since it will prevent someone to steal or to get in your datas. Following a way to do it.
You have to be able to generate a secure key from the server and after to affect the key the following code : $_SESSION['Env_UserSession']['AjaxKey'] = $key_sec
From the customer side, the key should be available via javascript and it can be a source of an hidden string. During the ajax request, get back the key and to transmit it to the ajax parameters. When the request is launched, you have to control from the server that the key exists and to verify it with the one saved in the session (this one should be verify before to generate the ajax content to the customer).
When you have to control the server, you have to verify very well POST or GET exists because if it is empty, it can be someone try to steal the content. If all are ok, you can deliver the content without any danger.

How to create a form in a simple click

September 9, 2008

It is very difficult to create a form, at least for people who have no knowledge about programming. There is a web site which proposes for those people to create a form in a very easy way.

You just have to go to this site http://www.jotform.com , create an account (it s free totally) and after log in just choose one of the assistants to create your own form. You can configure totally your form and the application is very simple and easy to use.

The bad point is that the generated code is not very clean for some form but what is the most important point, that we get the good result.

Arizona Landscaping - Debt Consolidation - Credit Counseling - Credit Card Consolidation
Bottom