Forum Moderators: coopster
<?php
$transStatus=$_REQUEST['transStatus'];
if($transStatus =='Y')
{
print "<h3>Success</h3>";
}
else
{
print "<h3>Cancelled..</h3>";
}
?>
But it doesnt seem to work, i even tried changing the if($transStatus =='Y') to a single = but that way it works but it always returns the success message whether or not the transStatus is Y or not.
Any suggestions would be very much appreciated.
Cheers
Linda
Do you perhaps have an editor that tries to do "smart" quotes, where the opening and closing double quotes are different? That might result in characters in your source that aren't quotes at all, as far as PHP is concerned. Otherwise, the problem wasn't the quotes.