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 15-09-2011 16:08:07

makeitso
Members
Registered: 15-09-2011
Posts: 1

Redirect after submit

Hi Love this script i will donate no probs but what i want to know is after you submit and get the tick to say mail is sent is it possible to make the script at that point to say lik wait 3 secs then redirect to you home page.
Rick
Ps code snipet as to what to do and what file to put it in .

Thanks

Offline

#2 19-09-2011 20:06:35

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

Re: Redirect after submit

Yes, no problem. Open main index and find:

$tpl->assign('SEND_MESSAGE', $msg_index8);

after that add:

$tpl->assign('REDIRECT', (isset($formSent) ? 'yes': 'no'));

Open header template file, find:

</head>

Before that add:

<?php
if ($this->REDIRECT=='yes') {
?>
<meta http-equiv="refresh" content="3;url=http://www.google.co.uk">
<?php
}
?>

Change the url to what you need and you should be good to go. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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