artnbody Posted April 3, 2007 Share Posted April 3, 2007 Hello, I am very much a novice when it comes to PHP. I've used it mainly for includes as I'm a web designer. Now I have to create something a bit out of my realm of expertise, and was hoping for some suggestions. I am creating an email form, which works properly thus far. I have used "echo" to display a thank you message to the user after he/she clicks submit, but this is not going to work for us as we specifically need an HTML thank you page for the sake of Google and Yahoo tracking (I will be inserting code from both Yahoo and Google shortly). Basically, I just want to redirect the user after submitting the form. This is the form: http://www.artnbody.com/dev/appointments.php This is where I want to redirect the user after submitting the form: http://www.artnbody.com/dev/thankyou.html Any help would be GREATLY appreciated!!!!!!! Justin - artnbody.com Link to comment https://forums.phpfreaks.com/topic/45364-email-form-i-want-to-redirect-the-user-once-submit-is-clicked/ Share on other sites More sharing options...
pocobueno1388 Posted April 3, 2007 Share Posted April 3, 2007 You can use the header function. <a href="http://php.net/header">How to use it</a>. By the way, very nice design on the website =P Link to comment https://forums.phpfreaks.com/topic/45364-email-form-i-want-to-redirect-the-user-once-submit-is-clicked/#findComment-220271 Share on other sites More sharing options...
artnbody Posted April 3, 2007 Author Share Posted April 3, 2007 Very cool...I will check into that now. I have the option to outsource to a developer, but would really like to learn how all this works myself. I should probably find myself a nice tutorial somewhere. Gotta learn how to make some fields required, and how to have fields become active based on what the user has selected in a previous field. Fun fun fun!! Thanks for the compliment!! The homepage ( www.artnbody.com ) is pretty much complete aside from a few minor improvements I want to make, but the content pages are all have blank headers and not much navigation. Unfortunately, I work for an agency full time, and this business of ours is "after hours" for me... Thanks again!!!!!!!!! Link to comment https://forums.phpfreaks.com/topic/45364-email-form-i-want-to-redirect-the-user-once-submit-is-clicked/#findComment-220277 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.