1 Replies - 15685 Views - Last Post: 13 June 2012 - 08:32 PM

#1 ats3216   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 9
  • Joined: 15-November 11

Jquery Form Submission to Email

Posted 13 June 2012 - 04:35 PM

Hello Everyone,

I am fairly new to Jquery, but am trying to learn how to submit
a simple form that I have made, and have it sent to an email
address when hitting the 'Submit' button I have created.

Here is a portion of my code so far:

<div data-role="fieldcontain">
					<label for="firstName"> <strong>First Name:</strong> </label> <br />
					<input type="text" name="firstName" id="firstName" value="" placeholder="First Name"/> <br />

					<label for="lastName"> <strong>Last Name:</strong> </label> <br />
					<input type="text" name="lastName" id="lastName" value="" placeholder="Last Name"/> <br />

					<label for="phoneNumber"> <strong>Phone Number:</strong> </label> <br />
					<input type="text" name="phoneNumber" id="phoneNumber" value="" placeholder="(123)456-7890"/> <br />

					<label for="emailAddress"> <strong>Email Address:</strong> </label> <br />
					<input type="text" name="emailAddress" id="emailAddress" value="" placeholder="[email protected]"/> <br />

.......

<label for="additionalQuestions"> <strong>Additional Questions:</strong> </label> <br />
					<input type="text" name="additionalQuestions" id="additionalQuestions" value="" placeholder="Comments/Questions"/> <br />

					<h3 id="notification"></h3>
                    <button data-theme="b" id="submit" type="submit">Submit</button>
			</div>




I would like a person to be able to fill out each of these subjects, then when they hit
the submit button, I would like it to send each of these to my email address. I'm am just
unsure of how to proceed on this part.

Thank you for your responses, and I apologize if this is truly as simple a task as it seems....

Is This A Good Question/Topic? 0
  • +

Replies To: Jquery Form Submission to Email

#2 codeprada   User is offline

  • Changed Man With Different Priorities
  • member icon

Reputation: 963
  • View blog
  • Posts: 2,382
  • Joined: 15-February 11

Re: Jquery Form Submission to Email

Posted 13 June 2012 - 08:32 PM

A form starts with a <form> tag and ends with the </form> tag. Not sure if that's hidden from us but just in case you don't have it you adjust your code accordingly.

Do you want to submit the form via Ajax or by simply just invoking the form's submit event?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1