note 95642 added to function.mail

From: Date: Wed, 13 Jan 2010 19:15:48 +0000
Subject: note 95642 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-164938@lists.php.net to get a copy of this message
Anyone know how to make the form redirect to another page if the mail is sent successfully? if($mail_sent) { echo '<script type="text/javascript">location.href="index.php?page=thanks"; </script>'; exit; } Instead of posting the info in "thanks", I want the form to redirect to a URL "www.example.com/landingpage.html" Any clues? I have tried a few commands like just echo 'www.example.com/landingpage.html' also: $Successpage = 'www.example.com/landingpage.html' than: echo $Successpage But none are working. Thank you for any ideas. ---- Server IP: 69.147.83.197 Probable Submitter: 75.112.157.66 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/95642 Del: integrated -- https://master.php.net/note/delete/95642/integrated Del: useless -- https://master.php.net/note/delete/95642/useless Del: bad code -- https://master.php.net/note/delete/95642/bad+code Del: spam -- https://master.php.net/note/delete/95642/spam Del: non-english -- https://master.php.net/note/delete/95642/non-english Del: in docs -- https://master.php.net/note/delete/95642/in+docs Del: other reasons-- https://master.php.net/note/delete/95642 Reject -- https://master.php.net/note/reject/95642 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164938) next »