I don't really know php, just plugging in what makes sense from my c/c++ history.

I have a form that is created and then populated based off specific values in a db.

I want the user to be able to edit those values, and submit them and then have those values updated in the db.

I can get the first part done...

but I can only get the second part done by posting every single variable as its own entity. I would much rather send across the values and run it through a for statement, but I don't believe the post syntax allows for that.

Lets say the posted form field name is

postedname1
postedname2
postedname3

and so on...

to get it to work I have to say...

$value[0] = $_POST['postedname1'];
$value[1] = $_POST['postedname2'];
$value[2] = $_POST['postedname3'];
etc...

I would rather run it something like this...


for($location=0;$location<16;$location++){
$value[$location] = $_POST['postedname$location'];
}

The formatting of that is obviously incorrect as it doesn't work, but how can I change the value of the post value to equal 'postedname1','postedname2' as the for statement goes up?

Anyone....Anyone...bueller...