Re: form fields ---> non indexed array.... help
| From: | Dan Lowe | Date: | Wed, 29 Nov 2000 20:18:06 +0000 |
| Subject: | Re: form fields ---> non indexed array.... help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27868@lists.php.net to get a copy of this message | ||
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.