Re: Passing 76 form variables ?????

From: Date: Mon, 09 Oct 2000 14:37:48 +0000
Subject: Re: Passing 76 form variables ?????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19195@lists.php.net to get a copy of this message
Joey Garcia wrote: > > I have a form that has about 76 form elements and I use the same php page > for all the pages (i.e., action=$PHP_SELF) so after the form is filled out > the form is submitted then I have to pass all these variable to the function > for updating the database, so my question is there a way to pass the whole > form's array then pull them out like so $FORM["engineer"], > $FORM["startDate"], ... ? I know I could create an array then pass that > but I was hoping for a more elegant process. > > Any insight is appreciated. > > -- Joey > if ( isset($HTTP_POST_VARS) ) { $frm = $HTTP_POST_VARS; } $frm is an array with the names of your form variables as identifiers and the values as ... well the values ;-) -- Stefan - Zipkid - Goethals YourNet - Open source web design & Site management. http://www.yournet.be mailto:stefan@yournet.be

« previous php.general (#19195) next »