On Fri, April 20, 2007 2:05 pm, Thufir wrote: Please tell me that's not your real name... :-) > $query = "SELECT DISTINCT * FROM craigslist ORDER BY id"; > $result = mysql_query($query) > or die ("Couldn't execute query."); > > /* create form containing selection list */ > echo "<form action='processform.php' method='post'> > <select name='id'>\n"; > > while ($row = mysql_fetch_array($result)) > { > extract($row); > echo "<option value='$id'>$id\n"; > } > echo "</select>\n"; echo htmlentities($notes); > echo "<input type='submit' value='id'> > </form>\n"; > ?> -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php