Forum Moderators: open
/* here's the "receiving" code on "search_results2.php": */
<?php
($_POST['dealerlist']);
$dealer = $_POST['dealerlist'];
if ($dealer);
include "$dealer";
?>
-------------------------------------------------
This pair does _NOT_ work:
-------------------------------------------------
<form action="search_results2a.php" method="POST" id="zipform" name="zipform" target="results">
<select class="select" style="width: 200px;" name="dealerzip" size="1">
<option selected value=" ">Search by Zip Code</option>
<option value="zip_80012.html">80012</option>
/* again, the action page code on search_results2a.php: */
<?php
($_POST['dealerzip']);
$zip = $_POST['dealerzip'];
if ($zip);
include "$zip";
?>
---------------------------------------------------------
Am I blind? Would actually welcome hearing that about now -- ANY HELP massively appreciated ;-)
filmmaker_2001
I've had two forms working on the same page before now - it's perfectly legal HTML.
You're not posted your whole code below, which is fine.
Have you gone through your code and made sure that you've closed the form tag on both forms? (Seems obvious but I've done it myself)
How are the selections submitted? Automatically through JavaScript (though I see no hooks through any onChange code), or through a submit button/image?
JP