Re: Help with if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: php-windows@xxxxxxxxxxxxx
Sent: Monday, August 6, 2007 11:18:22 AM (GMT-0500) America/New_York
Subject:  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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux