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
https://forums.phpfreaks.com/topic/235883-contact-form-help-with-php-050811/
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

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.