Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down forms for website

Status
Not open for further replies.

PHHeisel

Technical User
Nov 28, 2004
17
US
I host my own website and need a script that can process an HTML drop down box form by saving it to a file or emailing.
Thanks in advance
 
That is very nice. So, where are you stuck? You do know this is Tek Tips, not Rent-a-coder, right?
 
Code:
<?
if (isset($_POST['test'])):
 echo "The value selected in the drop down box was ". $_POST['test'];
 echo "<br/><br/>";
endif;
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="test">
 <option value="one">Test One</option>
 <option value="two">Test Two</option>
 <option value="three">Test Three</option>
 <option value="four">Test Four</option>
</select>
<br/>
<input type="submit" name="submit" value="submit" />
</form>
[code]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top