Re: Help with if
| From: | Carlton Whitehead | Date: | Mon, 06 Aug 2007 15:31:45 +0000 |
| Subject: | Re: Help with if | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28324@lists.php.net to get a copy of this message | ||
Hi Stephen,
It looks like there are a few problems:
</php should change to <?php (your script shouldn't be parsing at all right now)
In your second line, do you have a constant named Unregistered, or are you trying to check if $rank
is a string containing "Unregistered"? I'm guessing that line should change to:
if ($rank !== 'Unregistered') {
Regards,
Carlton Whitehead
----- Original Message -----
From: "Stephen" <therealzerocool@gmail.com>
To: php-windows@lists.php.net
Sent: Monday, August 6, 2007 11:18:22 AM (GMT-0500) America/New_York
Subject: [PHP-WIN] Help with if
i'm tryin to get the if command to work on my site so that I can get the
buttons to show for registering if a certain user is at the first rank.
The current code that I have is as follows;
</php
if ($rank) !== Unregistered) {
echo '<form action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-
but24.gif" border="0" name="submit" alt="Make payments with PayPal -
it's fast, free and secure!">
<img alt="" border="0"
src="https://www.paypal.com/en_US/i/scr/pixel.gif"
width="1"
height="1">
<rest of the code>
} else {
echo '<A HREF="https://www.paypal.com/cgi-bin/webscr?
cmd=_subscr-find&alias=therealzerocool%40gmail%2ecom">
<IMG SRC="https://www.paypal.com/en_US/i/btn/cancel_subscribe_gen.gif"
BORDER="0">
</A>';
}
?>
On the account i'm testing with it should not be showing both buttons on the
lase one, but both of them show. What am I doing wrong?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php