$counter = -1;
while ($row = mysql_fetch_row($sql_result))
{
$counter++;
$state = $row[0];
print "State: <input name=state".$counter." size=50 type=text value=". $state . ">";
}
I need to have any number of textboxes named state0, state1, state2, state3 etc and then be able to post to a form which can then loop through each of those textboxes to update my database. Is there an easy way of doing this?
Thanks.