Here is what the code looks like in php now:
</td>
</tr>
<tr valign="top" height="20">
<td align="right"> <b> ADDRESS : </b> </td>
<td> <input type="text" name="thisADDRESSField" size="20" value="">
</td>
</tr>
<tr valign="top" height="20">
<td align="right"> <b> CITY : </b> </td>
<td> <input type="text" name="thisCITYField" size="20" value="">
</td>
</tr>
<tr valign="top" height="20">
<td align="right"> <b> STATE : </b> </td>
<td>
<? $result = mysql_query('SELECT STATE FROM LOCALSTATE');
$dropdown = '<select name="thisSTATEField">';
while ($row = mysql_fetch_array($result)) {
$dropdown .= '<option>'; $dropdown .= $row['0'];
$dropdown .= '</option>'; }
$dropdown .= '</select>';
echo $dropdown; ?>
</td>
</tr>
<tr valign="top" height="20">
<td align="right"> <b> COUNTY : </b> </td>
<td>
<? $result = mysql_query('SELECT COUNTY FROM COUNTY');
$dropdown = '<select name="thisCOUNTYField">';
while ($row = mysql_fetch_array($result)) {
$dropdown .= '<option>'; $dropdown .= $row['0'];
$dropdown .= '</option>'; }
$dropdown .= '</select>';
echo $dropdown; ?>
</td>
</tr>
<tr valign="top" height="20">
<td align="right"> <b> ZIP : </b> </td>
<td> <input type="text" name="thisZIPField" size="6" value=""
onKeyDown="javascript
:return dFilter (event.keyCode, this, '#####');">
</td>
</tr>
Instead of using text inputs and select boxes for users, I wanted them to
be able to just enter a zipcode in the zipcode field and it would
automatically populate the city, county and state on the same page. Then,
ater the users finished filling out the rest of the form, they would just
submit it (and it would be entered into a mysql database.)
The form is done, however I wanted to change it to accomodate the
zipcode/autopopulated fields thing.
Just a side note: I am using some javascript for input masking, but it was
taken from Javascript source and was pretty easy to set up, don't think for
a moment I'm actually familiar with javascript.