gogelpot
01-18-2007, 05:46 AM
Hi I have a problem that I need some help with.
I have a form that POST data to my php script, the field names are created on the fly.
exp. $Bat1_player1, $Bat1_player2, $Bat1_player3 ect.
In my script I want to use a while loop to create the fields again, but this is where the problems starts. I use the following statment.
if (isset($_POST['Bat1_player1'])) $Bat1_player1 = $_POST{'Bat1_player1'];
but need to replace the 1 at the end of "{'Bat1_player1'];"
How can this be done?
Could some body pls help.
I have a form that POST data to my php script, the field names are created on the fly.
exp. $Bat1_player1, $Bat1_player2, $Bat1_player3 ect.
In my script I want to use a while loop to create the fields again, but this is where the problems starts. I use the following statment.
if (isset($_POST['Bat1_player1'])) $Bat1_player1 = $_POST{'Bat1_player1'];
but need to replace the 1 at the end of "{'Bat1_player1'];"
How can this be done?
Could some body pls help.