Hi there if anyone can help it would be great as this is really starting to do my head in!!!!!
I have a login page which asks users to give their name and cusomter number. The form then calls another page which runs the script. If the user has spent more than £200 they will be soon the amount of vouchers they have. If they have spent less than £200 I want the script to say SORRY NO VOUCHERS and if the details are entered incorrectly on the login page the page returns TRY AGAIN. Here is the statement I am trying to make work....
if ($points <= 199) {
print "SORRY NO VOUCHERS";
} elseif ($cnt !=0) {
print "$points<br>$vouchers";
} else {
print "TRY AGAIN";
}
Now the problem I am having is that....it never returns the TRY AGAIN piece as the code returns SORRY NO VOUCHERS as it thinks there are no points.
Does anyone have any pointers.....this is really starting to do my head in. Thank you soooo much.