chrisvmarle
05-22-2003, 09:08 PM
I have form that sends an unknown number of variables to a .php page.
The part that my question is about sends the following variables:
f_1, f_3, f_7, f_10 etc...
But I don't know what the last is and I don't know the exact numbers, but it always is "f_" + number
Does anyone know how to get the name and value of these variables from $_POST?
Thanks in advance
Mzzl, Chris
I'm sure there's a way to go through all the items in $_POST in a for or while loop, if someone could tell me how to to this I think I'm able to do the rest.
I mean something like this:
while($current = get_next_item_from($_POST)) {
echo $current . " = " . $_POST[$current];
}
The part that my question is about sends the following variables:
f_1, f_3, f_7, f_10 etc...
But I don't know what the last is and I don't know the exact numbers, but it always is "f_" + number
Does anyone know how to get the name and value of these variables from $_POST?
Thanks in advance
Mzzl, Chris
I'm sure there's a way to go through all the items in $_POST in a for or while loop, if someone could tell me how to to this I think I'm able to do the rest.
I mean something like this:
while($current = get_next_item_from($_POST)) {
echo $current . " = " . $_POST[$current];
}