Submit 2 Variables
Posted: Sat Jul 08, 2006 6:39 pm
Here is a piece of my code im working with
this submits index.php?name=$author where $author is the author selected, however i want to submit $author and the $default_theme associated with the author so it would look like index.php?name=$author&t=$default_theme but i am unsure how to go about this...i tired
but that didnt work....
I'd guess i have to have a hidden input but i dont know how to have the author I select from the menu associate itself with the default_theme it is pared with.
thank you.
Code: Select all
$sql41 = "SELECT * FROM ".$prefix."_theme_authors ORDER BY author ASC";
$result41 = $db->sql_query($sql41);
echo "<form action='index.php' method='get'>
<select name='name'>";
while($row41 = $db->sql_fetchrow($result41)){
echo "<option value='".$row41['author']."'>".$row41['author']."</option>";
}
echo "</select>
<input type='submit' />
</form>";Code: Select all
echo "<option value='".$row41['author']."&t=".$row41['default_theme']."'>".$row41['author']."</option>";I'd guess i have to have a hidden input but i dont know how to have the author I select from the menu associate itself with the default_theme it is pared with.
thank you.