Edited: I found out that I cannot echo at all. I tried a small program below and when I run it, I get a blank page.
The original problem is below:PHP Code:<html>
<body>
<?php
echo 'You will be re-directed in 3 seconds';
?>
</body>
</html>
I have a piece of code below and when I get to this condition, I want to print "You have already registered" and then return to the page shown in the "header" line
Before the following php code, I have checked mysql and either found 1 or 0 records. If I find 1 record, that is when I want to alert the user he is already registered. Thanks for any help
PHP Code:if ($num==1) {
mysql_close();
echo ' you are already registered' ;
header("Location: http://www.lotatennis.com");
}



Reply With Quote




Bookmarks