it seems as though my initial post was a bit unclear, my example was not very accurate, i apologize. my form, when submitted calls pageB.php. in this page, pageB.php, i am going to do something with the variables which were posted. the posted variables are like this:
pname0=Joe Shmo;
pname1=Joe Smith;
pname2=......
and so on.
i have a variable that is posted as well, $Key, which tells me how many pname's there are. so i am going to create a while loop to call each posted variable, however i have no idea how to create a variable name (Pname#) out of other variables.
my loop will look a little bit like this:
$count=0;
while($count<$Key)
{
print("Your name is : $("Pname".$count)");
....more stufff.....
}
is this a bit more clear? i need to make a variable $Pname# where # is an integer which will be incremented. thanks for the help guys!