Thursday, 15 April 2010

php - Differentiate page opening depending on the action taken -


I'm having trouble with the code given below, instead of messages, Would like to open one of the pages I think I should use something other than echo, but I'm not familiar with PHP coding too. Any help greatly appreciated $ check = $ _POST ['template']; If ($ check == wrong) {echo 'thankyou.php'; } Else {echo 'error.php'; Mail ($ $, $ theme, $ body); }

If you want to redirect them to the page usage headers ("Location: thankyou .php "). If you want to use pages then it includes "thankyou.php";

No comments:

Post a Comment