Form containing 2 menus not returning anything

From: Date: Sat, 23 Oct 2004 14:01:20 +0000
Subject: Form containing 2 menus not returning anything
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200151@lists.php.net to get a copy of this message
I created an html form comprised of two menus but when the action method for the form calls my "handler.php" script, neither of the menu variables contain anything. Could someone point out what I'm doing wrong? Thanks, Ken ---------------------------------------- Here's the relevant html: <form action="handler.php" method="post" name="select_view_form"> <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="labelTextBold" width="100px">Publication:</td> <td class="labelText"> <select name="publication" onChange="MenuSubmit();"> <option value="none">none</option> <option value="1">Ashland TAB</option> <option value="2">Canton Journal</option> </td> </tr> <tr> <td class="labelTextBold" width="100px">View:</td> <td class="labelText"> <select name="view" onChange="MenuSubmit();"> <option value="none">none</option> <option value="1">Pub Status</option> <option value="2">Pub Notes</option> </select> </td> </tr> </table> </form> And here's the PHP handler script: <?php if ($view) { echo $publication."\n".$view; } else { echo "no values supplied"; } ?>

« previous php.general (#200151) next »