Hi all,
So im very new to PHP as well to this forum and I need little help.
I have this drop down menu and I would like to pass the selected value on another page.
<form name="search" method="post" action="searchComp.php" >
<label for="searchbycomp"> Search by Company</label>
<select size="1" name="searchbycomp" id="searchbycomp">
<option value=" "> </option>
<?php while($row = odbc_fetch_array($res7))
{
echo "<option value='$row[company_name]'> $row[company_name] </option>";
}
?>
</select>
<input type="submit" class="styled-button-1" name="searchbycomp" value="Search">
Thanks for your help!
Lily