Posted by Chris on 09/29/05 17:13
Can anyone advise me or point me to examples where I might figure out
how to populate the pulldown below automatically with a query when the
page is first opened?
I have a database with the dogs names in there that I would very much
like to populate through a db query of that table versus having to
hardcode the box when changes occur. Database name=dogs and
table=dogs_tbl
<html>
<head>
<title>Dog Name Database Query</title>
</head>
<body>
<tr>
<td valign=top align=center width=400>
<font color=white>.</font><br>
<font color=black face=ARIEL><p>
<form method="" action="">
<center>
<table border="1">
<tr>
<td>Dog Name:</td>
<td><select name="dogname">
<option value = "all">All</option>
<option value = "spot">Spot</option>
<option value = "snoopy">Snoopy</option>
<option value = "oscar">Oscar</option> etc...
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
value="Submit"></td>
</tr>
</table>
</form><p>
</td>
</tr></table></center><p>
</body>
</html>
Navigation:
[Reply to this message]
|