I've been trying to learn PHP and am attempting to finish my site that accepts payment. THe system works fine except that the confirmation page is ugly and instead of an echo on a white page i would like to redirect to a better looking site.
The user enters their card information and an if else statement begins
if - fail
//go to this site
else - sucess
// go to this site
What is the code for the site redirect inside of the if then?
Here is the current code- instead of echo "" i want a site redirect to a better looking page.. how can i do this??
THANK YOU!
Code: Select all
if(isset($arr['L_ERRORCODE0'])){
$cnt=0;
while(true){
if(isset($arr['L_ERRORCODE' . $cnt])){
echo "Error: " . $arr['L_ERRORCODE' . $cnt] . " - " .$arr['L_LONGMESSAGE' . $cnt];
}else{
break;
}
$cnt++;
}
}else{
echo "Succesful";
}