how do you create a redirect in php? i have tried openlink(), but that doesn't work for some reason...
Make sure you don't output ANYTHING (no spaces, no HTML, or anything else) and use header():
<?php print header( "Location: http://www.abcd.com" ); ?>
Hope this helps!
-Rich
Straight from the manual :
/ Redirect browser to PHP web site / header ("Location: http://www.php.net"); / Make sure that code below does not get executed when we redirect. / exit;
<?php print "<script> location.href='chatscreen.php' </script>"; ?>
you can try this!
That is a just another way of writing a javascript redirect. I think he was asking for a PHP solution.
Yup I know but i work's the same maybe the guy is much verse on javascript, so its up to him.