954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Multiple mysql select boxes question

I have a site i've done in wordpress with multiple select boxes loaded from the database. How would i take the selected options from the select boxes and send the user to the corresponding url?? The select boxes are not chained or connected at all. Do they need to be to achieve this? Might be a dumb question but I'm a rookie. Thanks

heres what i have so far (2 instances of this)

<?php
$sql = "SELECT * FROM `product_categories` WHERE `name`";

$rs = mysql_query($sql);

while($row = mysql_fetch_array($rs))
{
  echo "<option value=\"".$row['name']."\">".$row['name']."\n  ";
}
?>
mac4281
Newbie Poster
1 post since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: