Can someone show me a sample block of code that will take the key=>value pairs from $HTTP_POST_VARS and add them to a multidimensional array?
For example, the form has two fields, fname and lname. The script that accepts input from the form has an array named list. Each time the form is posted, add to the array the values entered:
$list[0]["fname"] = "foo"
$list[0]["lname"] = "bar"
next time:
$list[1]["fname"] = "foo2"
$list[1]["lname"] = "bar2"
How can I take what is in $HTTP_POST_VARS and add it to the end of my array?
Thank you very much.
Doug