Re: Create array from $HTTP_POST_VARS?

From: Date: Wed, 02 Aug 2000 14:17:01 +0000
Subject: Re: Create array from $HTTP_POST_VARS?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9697@lists.php.net to get a copy of this message
Cerdit goes to chris b for this: untested but shoud work while( list( $key, $val ) = each( $HTTP_POST_VARS )) { $myrow[$key] = $val; } Chris On Wed, 2 Aug 2000, axbom wrote: > After receiving an input from a form using > POST, is there any way I can extract the > data from $HTTP_POST_VARS into an > array called $myrow, allowing me to access > each variable using $myrow["variablename"] > > e.g. so that > > <?php echo $myrow["name"] ?> > > outputs the same as if I would type > > <?php echo $name?> > > Thanx 4 yur time... > > .p > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#9697) next »