Log in

View Full Version : Forms - submit button



jhatter
03-12-2010, 11:30 AM
Hi,

The form I have created (see below) currently opens up Thunderbird when you press the SUBMIT button.

I would like it to by-pass a mail-client (Thunderbird etc) and send the message by itself, independently of the need to open up a mail-client.

Can this be done easily? I look forward to your replies.


<form id="comments_form" action="mailto:john@xyz123.com" method="get">

<fieldset>
<legend>Contact:</legend>
<p>
<label for="author">Name: <em class="required">(Required)</em></label>
<input name="author" id="author" type="text" />
</p>

<p>
<label for="email">Email Address: <em class="required">(Required)</em></label>
<input name="email" id="email" type="text" />
</p>

<p>
<label for="text">Message:</label>
<textarea name="text" id="text" cols="20" rows="10"></textarea>
</p>

<div>
<input type="submit" name="btnSubmit" id="btnSubmit" value="Submit" class="btn" />
</div>

</fieldset>

</form>
</div>

bluewalrus
03-12-2010, 02:33 PM
with php or another server side language. The mailto opens the default mail application.