I'm finding that while the following code allows me to successfully connect with, select, and insert records into my database, the records turn out blank (new rows appear but there is no data in the rows). I'm a newbie, and assume that I'm leaving out a vital step(s). Could someone please look at my code and let me know how I'm screwing this up? Thanks!!!
<?php
$connect=mysql_connect("localhost","root");
if (!$connect) { print "ERROR: " . mysql_error() . "\n"; }
$select=mysql_select_db("jbierhoff",$connect);
if (!$select) { print "ERROR: " . mysql_error() . "\n"; }
mysql_query ("INSERT INTO webform (fullname, email, city, state, phone, extension, service, review, reviewyear,
reviewduemonth, reviewdueday, reviewdueyear, comments)
VALUES ('$POST[fullname]', '$POST[email]', '$POST[city]', '$POST[state]', '$POST[phone]', '$POST[extension]',
'$POST[service]', '$POST[review]', '$POST[reviewyear]','$POST[reviewduemonth]', '$POST[reviewdueday]', '$POST[reviewdueyear]', '$_POST[comments]') ");
?>
<form action="processor.php" method="post" onSubmit="return checkData()" name="form">
<table width="600">
<tr>
<td class="bodytext" align="right"><b>Name:</b></td>
<td><input type="text" name="fullname" size="35" /></td>
<td class="bodytext" align="right"><b>Email:</b></td>
<td><input type="text" name="email" size="32" /></td></tr>
<tr><td class="bodytext" align="right"><b>City:</b></td>
<td><input type="text" name="city" size="35" /></td>
<td class="bodytext" align="right"><b>State:</b></td>
<td><input type="text" name="state" size="2" /></td></tr>
<tr><td class="bodytext" align="right"><b>Phone:</b></td>
<td><input type="text" name="phone" size="15" maxlength="15" /></td>
<td class="bodytext" align="right"><b>Extension:</b></td>
<td><input type="text" name="extension" size="5" maxlength="5" />
<font face="verdana" size="2" color="darkred"></font><font face="verdana" size="1"
color="darkred">MANDATORY FIELDS</font>
</td>
</tr>
</table>
<table cellspacing="10" width="700">
<tr>
<td class="bodytext" valign="top" align="right">
<table align="right"><td align="left" class="bodytext">
<b>Service(s) of interest:</b><br>
<INPUT TYPE=CHECKBOX NAME="service" VALUE="Accounting/Auditing">Accounting/Auditing<br>
<INPUT TYPE=CHECKBOX NAME="service" VALUE="Tax Services">Tax Services<br>
<INPUT TYPE=CHECKBOX NAME="service" VALUE="Management Advisory">Management Advisory<br>
<INPUT TYPE=CHECKBOX NAME="service" VALUE="Investment Planning">Investment Planning<br>
<INPUT TYPE=CHECKBOX NAME="service" VALUE="Peer Review">Peer Review</td></table></td>
<td class="bodytext" valign="top" align="left">
<table align="left"><td align="left" class="bodytext">
<b>Peer Review type if applicable:</b><br>
<input type="radio" name="review" value="System">System Review<br>
<input type="radio" name="review" value="Engagement">Engagement Review<br>
<input type="radio" name="review" value="Report">Report Review<br>
<b>Peer Review Year:</b>
<select name="reviewyear">
<option selected>2003
<option>2004
<option>2005
<option>2006
<option>2007
<option>2008
</select><br>
<b>Due Date:</b>
<select name="reviewduemonth">
<option selected>January
<option>February
<option>March
<option>April
<option>May
<option>June
<option>July
<option>August
<option>September
<option>October
<option>November
<option>December
</select>
<select name="reviewdueday">
<option selected>1
<option>2
<option>3
<option>4
<option>5
<option>6
<option>7
<option>8
<option>9
<option>10
<option>11
<option>12
<option>13
<option>14
<option>15
<option>16
<option>17
<option>18
<option>19
<option>20
<option>21
<option>22
<option>23
<option>24
<option>25
<option>26
<option>27
<option>28
<option>29
<option>30
<option>31
</select>
<select name="reviewdueyear">
<option selected>2003
<option>2004
<option>2005
<option>2006
<option>2007
<option>2008
</select></td></table></td></tr>
<tr>
<td align="center" colspan="4"><br>
<textarea name="comments" class="bodytext" rows="5" cols="75">Include any questions or comments here.</textarea>
<br></td></tr>
<tr>
<td class="bodytext" align="right"><input type="submit" value="Submit" name="submitbutton" /></td>
<td class="bodytext" align="left"><input type="reset" value="Reset" name="reset" /></td></tr></table>
</form>