Re: form fields ---> non indexed array.... help

From: Date: Thu, 30 Nov 2000 10:33:38 +0000
Subject: Re: form fields ---> non indexed array.... help
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-27869@lists.php.net to get a copy of this message
Maybe, but Im passing this array to 5 different functions.... and then altering it along the way. but I got it fixed. ----- Original Message ----- From: "Dan Lowe" <dan@tangledhelix.com> To: "Dallas Kropka" <dallask@firstworld.net> Cc: "PHP LIST" <php-general@lists.php.net> Sent: Wednesday, November 29, 2000 12:18 PM Subject: Re: [PHP] form fields ---> non indexed array.... help > Maybe I'm missing something but these values are already in the array > $HTTP_POST_VARS, aren't they? > > -dan > > Previously, Dallas Kropka said: > > Ok, I looked through the archive I have (7500 messages) and didn't come up with crap. This is what Im trying to do... > > > > > > I have a form with lots of values pulled from a database. I want to (using post) place these variables into an array so that I can access the value from the name of the variable... > > > > so I have this field... > > > > <input type="text" name ="my_array_name[ form_var_name => form_var_value] value ="value_from_db"> > > > > and when Im all done I want my array to look like so... > > > > my_array_name[ form_var_name1 => form_var_value1 > > form_var_name2 => form_var_value2 > > form_var_name3 => form_var_value3 > > form_var_name 4=> form_var_value4] > > > > and so on.... > > > > > > I am having the problem that A) I dont know how to make the form place the variables in the array as I want... and B) what happens if one of those variables isnt there, or null string? > > > > > > Please help. > > Thanks, > > Dallask > > > > -- > Dan Lowe <dan@tangledhelix.com> http://tangledhelix.com/ > > A conclusion is the place where you got tired of thinking. > > -- > 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 (#27869) next »