Good day everyone,
I have alink that a user clicks:
<a href="display.php?server=2">
and in the php file it determines what server to show from the server value sent with the link.
code:
<?php if ($server == 1 ) { ?>
<td><SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/ss.js?a=64.8.228.4:27015&g=hl"></SCRIPT></td>
<?php } if ( $server == 2 ) { ?>
<td><SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/ss.js?a=66.28.23.87:27045&g=hl"></SCRIPT></td>
<?php } if ( $server == 3 ) { ?>
<td><SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/ss.js?a=198.107.184.86:27015&g=hl"></SCRIPT></td>
<?php }
else
{ ?>
<td align="center" valign="top"><Font color="RED">
Please Select a server
<br>
from the top.</font>
</td>
<?php } ?>
The problem is that no matter what $server equals it always shows the else condition.
and help would be great.
Thanks