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
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Form post not forwarding to email address

    I added one additional field to a previously working form and now it does not forward information to the email address. It's probably a simple error but I can't figure out what I am doing wrong. Here is the code with my changes highlighted in sandy:

    <form action="mailto:schera@finaltouchhousekeepers.com" name="contacts" id="contacts" method="post" onsubmit="contact(); return false;" >

    <p class="form">Name:<br />
    <input name="fname" type="text" /><br />
    Telephone Number:<br />
    <input name="phone" type="text" /><br />
    # Of Bedrooms:<br />
    <input name="bedrooms" type="text" /><br />
    # Of Bathrooms:<br />
    <input name="bathrooms" type="text" /><br />
    Frequency Of Service:<br />
    <input name="frequency" type="text" /><br />
    City <br /><input name="City" type="text" /><br />
    <input type="reset" class="btnr" value="" /><input type="submit" name="submit" class="btns" value="" /></p>
    </form>

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,589
    Thanks
    0
    Thanked 644 Times in 634 Posts
    You can't use mailto: with forms - mailto: just opens the visitor's email program and ignores the form.

    To send the form content as an email you need to use a form2mail script.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Tags for this Thread

    Posting Permissions

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