Insert Into Mysql Using Php / Html Form - Not Working
I'm trying to enter data into a mysql database using php / html form but it isn't working and I don't know why. The record is not inserted and I only get a blank page after I subm
Solution 1:
Form field names aren't supposed to start with a number, as in name="48hfilm"
for example.
After doing a certain amount of testing, I got back a parse error with Print "<th>48h Film Challenge?</th> <td>$_POST[48hfilm]</td> ";
Change:
<td><input type="radio" name="48hfilm"id="48hfilm" value="Yes">Yes
<input type="radio" name="48hfilm"id="48hfilm" value="No">No</td>
To:
<td><input type="radio" name="hfilm48"id="hfilm48" value="Yes">Yes
<input type="radio" name="hfilm48"id="hfilm48" value="No">No</td>
or start it with a letter such as name="a_48hfilm"
Post a Comment for "Insert Into Mysql Using Php / Html Form - Not Working"