So i made a form with a option menu that populates the menu with the information in the database
Code: Select all
$sql41 = "SELECT * FROM ".$prefix."_theme_authors";
$result41 = $db->sql_query($sql41);
echo "<form method='index.php' method='get'><select name='designer'>";
while($row41 = $db->sql_fetchrow($result41)){
echo "<option value='".$row41['author']."' selected='selected'>".$row41['author']."\n";
}
echo "</select><input type='submit' /></form>";For example: say my menu contains
Ill select Bob and submit the form, but when the page refreshes Chris is selected. The form is submiting the right value and everything because the address bar will display index.php?designer=Bob. i added the codeJohn
Bob
Bill
Jim
Chris
Code: Select all
selected='selected'Thank You.