The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Thank you message after form submission
zulqarnain
post Jun 29 2012, 02:47 PM
Post #1





Group: Members
Posts: 4
Joined: 25-June 12
Member No.: 17,329



I would like to show a thank you message after someone submits a form on my site.

www.zulqarnainmeditour.com/Contacts.html


I am using godaddy web hosting and set up the form using their default form service (whatever you call it?).
They added two php files to my account.

I am unsure how it works.
Do I simply make a new identical page deleting the form and adding a thank you message (and then redirect it to that new page?)

If so, how do I redirect?
It currently goes to my home page once the form is submitted.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
vettenut
post Jun 29 2012, 02:52 PM
Post #2





Group: Members
Posts: 8
Joined: 16-March 09
Member No.: 8,082



See http://brandenburg-auto-clinic.com/ click on schedule appointment and view source code. If you need more help let me know and I can eMail source code
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jun 30 2012, 05:17 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



There must be a redirect/location reference in one of the PHP files. You should be able to change that to point to another page than the home page.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
zulqarnain
post Jul 6 2012, 10:37 AM
Post #4





Group: Members
Posts: 4
Joined: 25-June 12
Member No.: 17,329



got it. thanks!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jul 6 2012, 10:45 AM
Post #5


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You're welcome.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rdavis42@ymail.com
post Jul 25 2012, 08:42 PM
Post #6





Group: Members
Posts: 5
Joined: 11-July 12
Member No.: 17,416



You must use the 301 redirect because 301 redirect is a permanent redirect..
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 26 2012, 06:36 AM
Post #7


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,796
Joined: 9-August 06
Member No.: 6



Nuh, that shouldn't be a permanent redirect, I don't think. It's just a form sending a thankyou message, it's not like the thankyou page should replace the redirecting page.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Jaycbrf4
post Aug 9 2012, 11:50 AM
Post #8


Member
***

Group: Members
Posts: 33
Joined: 9-August 12
Member No.: 17,587



jQuery has a much easier way. Once the form submits, show a <div> with your thank you message. It will just replace the form on the page.

the PHP files are just the mail commands and the form processor.

looks like that is what you have now...

This post has been edited by Jaycbrf4: Aug 9 2012, 11:51 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st January 2018 - 07:31 PM