Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: JS form

  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JS form

    <form action="http://www.hostmonster.com/monstermail" enctype="multipart/form-data" method="POST"> Name: <input type="text" name="Name"><br> Email: <input type="text" name="mailfrom"><br> Street Address: <input type="text" name="StreetAddress"><br> City: <input type="text" name="City"><br> Zip: <input type="text" name="Zip"><br> Phone: <input type="text" name="Phone"><br> <input type="hidden" name="sendtoemail" value="webmaster@runenation.com"><br> <input type="submit" value="Send Email"> </form>


    I need to know how to make a drop down box that will appear and when it's emailed to me, I can see what that person picked.
    Last edited by Alex Vincent; 11-20-2008 at 05:54 PM. Reason: deleting e-mail address at author's request

  • #2
    Regular Coder
    Join Date
    May 2007
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,

    just use a select input in your form like this:

    <form action="http://www.hostmonster.com/monstermail" enctype="multipart/form-data" method="POST"> Name: <input type="text" name="Name"><br> Email: <input type="text" name="mailfrom"><br> Street Address: <input type="text" name="StreetAddress"><br> City: <input type="text" name="City"><br> Zip: <input type="text" name="Zip"><br> Phone: <input type="text" name="Phone"><br>
    Drink: <select name="bev">
    <option value="tea" selected>Tea
    <option value="cof">Coffee
    <option value="lem">Lemonade
    </select><br>
    <input type="hidden" name="sendtoemail" value="webmaster@runenation.com"><br> <input type="submit" value="Send Email"> </form>
    Forum for webmasters and developers
    http://www.htmlfrenzy.com
    Are you an IT expert? Join our Reward system
    www.htmlfrenzy.com/reward-system.php


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •