Afficher un message
Vieux 16/09/2007, 17h08   #16
pepper.gabriela@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: no empty form fields after submitting form


> You can't be sure that you'll get all the values from the form you
> expect. Every data coming in from the client (POST, GET, ) can be
> incomplete or manipulated.




i'm in the classical little/medium site backend area sending data
thorugh $_POST: what could cause incompleteness? Who could manipulate
my data?



> You just have to make sure that missing values don't lead to notices or
> unexpected behaviour in your code.




it is what I try to do and I'm not receiving any unexpected behavior
at the moment :-)



> >I considered not using it because the PHP manual says it is not a good
> >idea for $_GET, $_POST, etc.

>
> Currently you're doing nearly the same.




well, it's true... I couldn't find a better way, since I can't change
the overall structure (so I can't but send data from A to B and
viceversa)


  Réponse avec citation
 
Page generated in 0,04740 seconds with 9 queries