I have a simple php script I want to use to have visitors on my site flag links as being expired or having incorrect content. It's set so that when a visitor clicks the flag link it sends an e-mail to me telling me that the link has been flagged. The script works fine and the e-mail shows up, the only problem is that the user is directed to a blank page and I want them to go to a page of my choice. Could someone please help me? Here is what I have for the script
Personally I would use a header redirect after doing my php work, but a meta refresh will work too. echo '<meta http-equiv="refresh" content="0;url=http://site.com">'; exit; PHP: Some servers do not allow the php header redirect. That is when you use the meta refresh redirect instead.
if you are using user-defined functions you can try this.. function redirect($time,$topage) { echo "<meta http-equiv=\"refresh\" content=\"{$time}; url={$topage}\" /> "; } then call the function to the script; redirect(2,"yourUrl.php");