Yeah I edited after I realized that I had tried it both ways .Burrito wrote:lose the quotesdamn it, either you edited or I missed itCode: Select all
$cntry = $_GET['cntry']; if ( $cntry == '' ) //This is line 12, and its 2 x ' not " { echo "Please select a country<br><p>"; }![]()
anyway, try print_r'ing your $_GET[] array to see what it shows...
PHP not keeping variables
Moderator: General Moderators
Ok, here is what I get when I print_r my $_GET['cntry']
Code: Select all
parse error: parse error, unexpected T_VARIABLE in /home/un/public_html/channels/index.php on line 11Code: Select all
<?
print_r($_GET);
?>Meh... Ok...Burrito wrote:Code: Select all
<? print_r($_GET); ?>
I also tried
Code: Select all
print $_GET['cntry']