$_POST & Arrays
Posted: Mon Feb 02, 2004 12:43 am
hey guys, maybe you can give me a hand with this concept.
I have a form with 3 Fields (the names of the fields are unknown as they are user defined).
Now when a user enters the details for this form, the script converts, using a foreach, the $_POST's into an array as $field=>value, so the array would look like this:
"(the field name)" => "(The Value of that field)" ,
etc etc etc
Is this clear, and can it be done. Using _POST to create an array.
What i'm truely aiming at is having a script that processes form completely autonomously and without prior Formname configurations.
Thanks.
I have a form with 3 Fields (the names of the fields are unknown as they are user defined).
Now when a user enters the details for this form, the script converts, using a foreach, the $_POST's into an array as $field=>value, so the array would look like this:
"(the field name)" => "(The Value of that field)" ,
etc etc etc
Is this clear, and can it be done. Using _POST to create an array.
What i'm truely aiming at is having a script that processes form completely autonomously and without prior Formname configurations.
Thanks.