Thank you page and redirect

DutchMan 17 Jan, 2009

After a user submits a form i want to show a thank you message for a few seconds and after that redirect the user to the homepage but dont know how to do it! Please can someone explain it to me...

GreyHead 17 Jan, 2009
Hi Dutchman,

Try this code in your OnSubmit

<div>Hi there, thanks for submitting our form!! . . .</div>
$doc =& JFactory::getDocument();
$doc->setMetaData( 'refresh', '5; url=index.php', 'Refresh' );

DutchMan 17 Jan, 2009
Thanks Bob, for helping me out... this works perfect!
This topic is locked and no more replies can be posted.