Forum Moderators: coopster

Message Too Old, No Replies

Code Help Please

         

smartcard

5:21 pm on May 23, 2005 (gmt 0)

10+ Year Member



In the following code, instead of "echo "SUCCESSFULLY!" how can I forward to another php file like instead of displaying SUCCESSFULLY! message, I need to forward to another PHP file


<? session_start();

if($_POST['code']!=$_SESSION['string']){
echo "SECURITY CODE ERROR... ";
}else{
echo "SUCCESSFULLY!";
}

?>

jatar_k

5:49 pm on May 23, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



replace the echo line with the header [php.net] function