I am looking for something like this as well. but I dont think that pauls answer fits the bill.
That code will essentially give you a static variable name of $name1. What I think Ryan was looking for is a way to create serialized variables like $name0, $name1, name2, ....
At least that is what I have done and need to retrieve. I have built a while loop that retrieves some data from a DB and puts it into form fields for a user to verify or edit. I then shoot that to an update page where I want to verify what the user has entered and slap it back to the DB if it meets my test. My problem is that I cant get my varibale to increment so it will read the next instance of the $name from the previous form.
I have tried to do stuff like this:
for ($i=0; $i<$theCount; $i++)
{
$retailer_id = "$retailer_id".$i;
$r_id = $retailer_id;//-- this should be the value from the form--//
}
any help greatly appreciated.