Forum Moderators: open
<form action="shortopic.php" method="post">
<select name="thistopic">
<?php
$view="select * from Topics order by topic";
$result=mysql_query($view) or die("out of cheese error, redo from start".mysql_error());
while($row=mysql_fetch_array($result))
{
$topic=$row['topic'];
$topic_id=$row['topic_id'];
if ($topic_id==8)
$sel="Selected";
else $sel=" ";
$cat=<<<MEOW
<option value ="$topic_id" $sel>$topic</option>
MEOW;
echo $cat;
}
?>
</select>
<input type="submit" name="tsubmit" value=" Go! "
</form>
</li>
<li><a href="http://example.com/name.php" target="_blank">Sorted by Author's last name</a></li>
<li><a href="http://example.com/title.php" target="_blank">Sorted by title</a></li>
</ul>
<form action="seeker.php" method="post">
Or you can search here: <input type="text" name ="seek" length="35" maxlength="35" />
<input type="submit" name= "submit" value="seek wisdom">
</form>
[edited by: incrediBILL at 5:58 am (utc) on Mar 16, 2010]
[edit reason] Only use EXAMPLE.COM for sample domain names [/edit]