Jump to content

contact form help with php - 05.08.11


mrjap1

Recommended Posts

Hello All,

 

I need some VERY DETAILED direction from anyone who can tell me how to complete this task.

 

I set up my database "riptide" in Php MyAdmin for the following data to be submitted by user.

Also a " form.php " form with the following fields.

 

Salutation: Mr. Mrs. Ms. Miss. Dr. Prof. (radio buttons) input name="salutation" type="radio" value="Mr." checked

First Name: (text input field) input name="first_Name"

Last Name: (text input field) input name="last_Name" 

E-mail: (text input field) input name="email"

Zip Code: (text input field) input name="zip_code"

Would you like to receive our email newsletter? Yes No (radio buttons) input type="radio" name="newsletter" value="yes" id="newsletter_0" checked

 

Okay here is my dilemma... I need to make web form that will do the following:

 

(1) Connects to my database

(2) INSERTS the form data filled out from my user into my MySQL database.

(3) I need an email that will be sent to both me and the user who filled out the web form

(4) A Thank you page "displaying" all the details the user filled out in the web form.

(5) Plus all fields are required and need " validation " especially the e-mail address.

 

I made a page called "process_form. php" that will handle all of this once the submit button is clicked.

How do I make this happen? :confused:

 

 

Thanks in advance

James

 

 

 

Link to comment
Share on other sites

Absolutely Yes... I want to know what is the php code that I must put on the "process_form. php page" to make the form get processed after the user enters their info and clicks the submit button.

 

I have no clue or any type of php code on as to what to do... that is why I am asking.

 

Again, this is what needs to take place:

 

(1) Connects to my database

(2) INSERTS the form data filled out from my user into my MySQL database.

(3) I need an email that will be sent to both me and the user who filled out the web form

(4) A Thank you page "displaying" all the details the user filled out in the web form.

(5) Plus all fields are required and need " validation " especially the e-mail address.

 

 

This will be on my form.php page

 

Salutation: Mr. Mrs. Ms. Miss. Dr. Prof. (radio buttons) input name="salutation" type="radio" value="Mr." checked

First Name: (text input field) input name="first_Name"

Last Name: (text input field) input name="last_Name" 

E-mail: (text input field) input name="email"

Zip Code: (text input field) input name="zip_code"

 

Its is possible for anyone to get this php code explained?

 

How do I make this happen? :confused: :confused: :confused:

 

Thanks in advance

James

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.