different approach using JavaScript... <script language="JavaScript"> // drop down redirect function doRedirect(value) { if ((value != "") || (value != "0")) { self.location=value; } else { alert('Please Make a Selection'); return false; } }
//--> </script> <form> <select name="name" onchange="javascript:dropdown(this.options[this.selectedIndex].value)"> <option value="0">< make a selection > <option value="your_php_page.php?<? echo $your_value1 ?>"><? echo $your_value1 ?></option> <option value="your_php_page.php?<? echo $your_value2 ?>"><? echo $your_value2 ?></option> </select> </form> Bueno, Javier ------=_NextPart_000_0055_01C252D0.ADA4A940 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3D"faqbycat.php"> <select name=3D"selcategoryid" value=3D"0"> <option name=3D"selcategoryid" value=3D"0" selected>Select a = Category</option> <?php //display list of provider names while ($myrowcating=3DMySQL_fetch_array($resultcatdet)) { $faqcatsid=3Dstripslashes($myrowcating["breastfaqcatid"]); =20 $faqcats=3Dstripslashes($myrowcating["breastfaqcat"]); echo "<option name=3D\"selcategoryid\" = value=3D\"$faqcatsid\">$faqcats</option>"; }//while = ($myrowadmintitles=3DMySQL_fetch_array($admintilteresult)) ?> =20 </select> <br><br> <input type=3D"Submit" name=3D"selbycat" value=3D"Show FAQ's by = Category"> </form> =20 Thanks for your answer, Ivan ------=_NextPart_000_0055_01C252D0.ADA4A940-- _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php