Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-11-2010, 12:11 PM #1
- Join Date
- May 2010
- Thanked 0 Times in 0 Posts
mailto function not working with submit button
I have a form that when it is filled out by a user it is then updated in a database, what i would like is for that information to be sent via email at the same time. Ive tried the mailto function but doesnt seem to work
my code is:
<input type="Submit" name="SubmitButton" id="SubmitButton" value="Submit" onclick="mailto:firstname.lastname@example.org"/>
any help would be appreciated
05-12-2010, 08:53 AM #2
- Join Date
- Jan 2010
- Burford, Oxfordshire, United Kingdom
- Thanked 39 Times in 39 Posts
In any event, given the patchy response you will get when using mailto it is probably advisable to avoid using it. [mailto depends upon at least both the browser being set up to respond to mailto and the user clicking on send when their email client pops up with a mail message]
If you want the information to be also emailed to you, it would be better to modify the server side script that places the information into the database.
If you don't have access to that script, it might be possible to set up an intermediate script that sends the email and sends the data to the original script. However I've never done that, and don't know if it could be implemented in practice.