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?
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.
Bookmarks