[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: [PHP] how do I send information to a php page from a menu list
From: "Ivan Carey" <icarey () bigpond ! com>
Date: 2002-09-02 12:32:53
[Download RAW message or body]
Hello,
how do I send information to a php page from a menu list?
When a user selects an item from the list I would like to be able to send "selcategoryid" to \
faqbycat.php without the use of a submit button.
Is it done by using the onChange event? if so how may this be done?
The code I am using presently is below
<form action="faqbycat.php">
<select name="selcategoryid" value="0">
<option name="selcategoryid" value="0" selected>Select a Category</option>
<?php
//display list of provider names
while ($myrowcating=MySQL_fetch_array($resultcatdet))
{
$faqcatsid=stripslashes($myrowcating["breastfaqcatid"]);
$faqcats=stripslashes($myrowcating["breastfaqcat"]);
echo "<option name=\"selcategoryid\" value=\"$faqcatsid\">$faqcats</option>";
}//while ($myrowadmintitles=MySQL_fetch_array($admintilteresult))
?>
</select>
<br><br>
<input type="Submit" name="selbycat" value="Show FAQ's by Category">
</form>
Thanks for your answer,
Ivan
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic