www.webdeveloper.com
Results 1 to 3 of 3

Thread: Problems with getting the send button to work with a form. (MAILTO used)

  1. #1
    Join Date
    Jul 2012
    Location
    Vantaa, Finland
    Posts
    125

    Problems with getting the send button to work with a form. (MAILTO used)

    I have created a form and am having problems with sending the completed form. When I press the send button it opens my email account.

    The code i use is below;

    <div id="form-det">
    <form action="MAILTO:info@what-do-christians-believe.co.uk" method="post" enctype="text/plain">
    <fieldset>
    <legend >
    <b>Personal Information</b>
    </legend>
    Your Name:
    <input type="text" name="name" value="your_name" size="20">
    <br><p></P>
    Your email address:
    <input type="text" name="mail" Value="your_email" size="25">
    <br>
    <p></p>
    </fieldset>
    <fieldset>
    <legend>
    <b>Your Comments</b>
    </legend>
    <p>Please tell us the reason why you want to contact us as accurately and as briefly as possible. </p>
    <p>Your comments are restricted to 20 lines of text.</p>
    <textarea rows="20" cols="80"></textarea>
    </fieldset><br/>
    <p>Pressing the submit button will email your form to what-do-christians-believe.co.uk</p>
    <input type="submit" value="Send"/>
    <p> Pressing the reset button will delete all entered data.</p>
    <input type="reset" Value="Reset" />
    <p> If you require a copy of your comments please print this form by right clicking on your browser and selecting print.</p>
    </form>

    What do I need to do to get it working properly.

    I also tried setting up captcha. I can't get that to work. Do you need captcha when there are other security devices around like cloud?

  2. #2
    Join Date
    Mar 2012
    Posts
    1,368
    <form action="MAILTO:info@what-do-christians-believe.co.uk" method="post" enctype="text/plain">

    That is what "mailto" does. It opens up your email account. Nothing to do with the form input. To convert form input into an email you need to use PHP or JavaScript. The easiest way may be to incorporate pre-written contact form code.

  3. #3
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
HTML5 Development Center



Recent Articles