View Full Version : Sending Form

07-13-2011, 03:36 PM
I have a script that has a form and i need it to send to an email address.

The send button has an onclick with send() as its action, the js file has a send function but no way of inputting an email address, I though of adding .submit() or .post() jquery items but I am having trouble. Basically the script was given to me as is because there was no need for it and i wanted to get it to work. an suggestions or ideas?


07-13-2011, 07:47 PM
is the email address dynamic (based on the user) or static (will be sent to the same email address each time)?

07-13-2011, 09:16 PM
i'm pretty sure you're going to need to send this to a server side script, likely via an ajax call, which will prepare the proper headers and send the email through an smtp server.

07-14-2011, 06:38 AM
You need a server side script.
See How to get email from an HTML form submission (http://www.html-form-guide.com/email-form/html-email-form.html)