Jump to content

Necessary to validate post data


TheFilmGod

Recommended Posts

Yeah, it is possible to hack with POST variables.  Basically ANY information users submit to your site can be modified so as to hack.

 

The way I prevent hacking with AJAX is I send a request to put some data in a database.  If the data does not check out (after processing with a PHP script), I send back an <errormessage> node with a relevant error message.  If it does check out, I send back a <success /> node.

 

I wrote a pretty brief/general post on checking user input on my blog, you might find it useful: http://www.ironcoding.com/?p=37.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.