Forum Moderators: coopster

Message Too Old, No Replies

Initialization

         

orion_rus

6:26 pm on Dec 17, 2004 (gmt 0)

10+ Year Member



Hello world i have a big form with many checkboxes how i can make best initialization when i submit it to server.
I have a $_POST array, i need to check all parameters and send it to database. Can anybody say me the best method?
P.S. May be php supports constructions like this:

class
...
foreach ($_POST as $key=>$value)
{$this->$key=$value;}

Please help me with this
Thanks in advance

jatar_k

11:20 pm on Dec 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



For my big forms where the data is important I do all my validation explicitly. I check each field individually and usually have a validation script for each form. I do create functions for validation of similar fields but most of it is still manual.

coopster

2:08 pm on Dec 19, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Me too. I wanted to bump this just for emphasis.