I'm a newbie in PHP, I have a dynamic textbox which looks like these
name="name1"
name="name2"
name="name3"
the number of fields depends on how many user wants but the problem is on the SQL script, I need to put the $ctr besides "$_POST[name]" in order for the compiler see all my fields.
for ( $ctr = 1; $ctr <= 10; $ctr += 1)
{
$sql = "INSERT INTO siblings (name) VALUES ('$_POST[name]')";
}
the problem is how to place the variable besides "$_POST[name]"
Thank you Guys!
- joel