Code: Select all
$statement="UPDATE $mytable SET activated='1' WHERE activated='$rstr'";
echo '<hr />';
$statement="UPDATE $mytable SET activated='1' WHERE activated='".$HTTP_GET_VARS['id']."'";
echo "Your e-mail has been activated.You will receive the profile details soon.";
$sql=mysql_query($statement) or die(mysql_error());My question is:"Once the user activates his email by clicking on the link, he gets the message which is inside the echo statement.
Now the link which the user gets in the email looks like: "
http://www.blahblah.com/project/activat ... =afefdcddf
I closed the browser and opened a new one and typed exactly without the id=cddaaaeba and with a different string.In both the cases i got the message which is inside the echo statement.Though the table does'nt get updated, but still i dont want to see such a message.
How best can I do this one?
Thanks