I use payflow link for sales on my site. It is getting complicated because I have a portion of the site which uses usernames and passwords for a fixed fee and I have different products for sale. Payflow link will only return to one URL. I can't return product buyers to my login screen so I tried to redirect according to the description variable returned by payflowlink.
But this first if statement is being ignored. I check my hidden input fields and "handbook" is there. But PHP ignores the redirect and executes the second if statement. Any ideas what could be causing this?
if ( $DESCRIPTION == "handbook" )
header( "Location: /confirmation.php" );
if ( $DESCRIPTION != "5ANTM30" )
header( "Location: /cecredit/anti/registration.php" );