html - PHP IF Statement executing both conditions -
i'm integrating payment system website. have response script takes in data secure server , displays customer if payment has gone through or not. problem if statement displaying both messages customer, if payment has been successful or unsuccessful.
here if statement:
<? if ($result == "00") && ($payersetup == "00") && ($pmtsetup =="00"){ ?> thank <br/><br/> return home page <a href="http://www.xx.com"><b><u>click here</u></b></a> <br/><br/> <? } else { ?> <br/><br/> there error processing subscription. try again please <a href="http://www.xx.com/signup.html"><b><u>click here</u></b></a><br><br> please contact our customer care department @ <a href="mailto:support@xx.com"><b><u>support@xx.com</u></b></a> <? } ?>
i have tried doing following way, method, body blank - no text displayed.
<? if ($result == "00") && ($payersetup == "00") && ($pmtsetup =="00"){ $thanks = "thank you! \n\n return homepage <a href=http://www.epubdirect.com>click here</a>"; echo $thanks; } else { $nothanks = "there error processing subscription.\n\n try again please <a href=http://www.epubdirect.com/signup.html>click here</a>. \n\n if problem persists, please contact our customer care department @ <a href=mailto:support@epubdirect.com>support@epubdirect.com</a>"; echo $nothanks; } ?>
and after tried put html seperate document , use require_once() didn't work either - same result previous - blank body.
any 1 have ideas?
edit:
i have tried of ways suggested i'm still having blank page problem :(
here way have gone ->
<? if (($result == "00") && ($payersetup == "00") && ($pmtsetup =="00")) { require_once('thankyou.html'); } else { require_once('error.html'); } ?>
this still gives me blank page though syntax looks right?
try:
if (($result == "00") && ($payersetup == "00") && ($pmtsetup =="00") ) { ... ... }
Comments
Post a Comment