Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 07-11-2009 17:00:37

jandokan
Members
Registered: 07-11-2009
Posts: 4

Thank You page

Hi is it possible to redirect users to a thank you page instead of displaying the Thank You message in the form?

Thanks

Offline

#2 08-11-2009 10:07:17

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,124

Re: Thank You page

Yes, that would be no problem. Open the index.php file. On lines 153 & 203 find:

$dMsg   = $thanks;

AFTER that add the redirect to your thanks page. Depending on its location, use full or relative url:

header("Location: templates/thanks_page.html');
header("Location: [url]http://www.yoursite.com/thanks_page.html");exit;

Don`t forget to use 'exit' or else it may not redirect.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 09-11-2009 17:34:00

jandokan
Members
Registered: 07-11-2009
Posts: 4

Re: Thank You page

Great Thanks it works.
For other people who want to use this there is a slight typo in the code above please use this:

header("Location: templates/thanks_page.html");
header("Location: http:/ /www.yoursite.com/thanks_page.html");
exit;



Again thanks

Offline

#4 09-11-2009 19:49:56

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,124

Re: Thank You page

Typo where? Probably the way this forum formats the code. Glad it works anyway.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy