mrjap1 Posted May 9, 2011 Share Posted May 9, 2011 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? Thanks in advance James Quote Link to comment https://forums.phpfreaks.com/topic/235883-contact-form-help-with-php-050811/ Share on other sites More sharing options...
calvinschools Posted May 9, 2011 Share Posted May 9, 2011 post your code Quote Link to comment https://forums.phpfreaks.com/topic/235883-contact-form-help-with-php-050811/#findComment-1212590 Share on other sites More sharing options...
fugix Posted May 9, 2011 Share Posted May 9, 2011 so you would like to know how to set up all of the things that you listed for use in your process_form.php page? Quote Link to comment https://forums.phpfreaks.com/topic/235883-contact-form-help-with-php-050811/#findComment-1212617 Share on other sites More sharing options...
mrjap1 Posted May 9, 2011 Author Share Posted May 9, 2011 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: Thanks in advance James Quote Link to comment https://forums.phpfreaks.com/topic/235883-contact-form-help-with-php-050811/#findComment-1212667 Share on other sites More sharing options...
calvinschools Posted May 9, 2011 Share Posted May 9, 2011 it would probably be faster for you to google "contact forms php" then for someone to write one for you. There are a million forms you can copy and paste and tutorials on youtube. Quote Link to comment https://forums.phpfreaks.com/topic/235883-contact-form-help-with-php-050811/#findComment-1212671 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.