Page 2 of 2
Posted: Thu Oct 13, 2005 4:48 pm
by Lostnode
Burrito wrote:lose the quotes
Code: Select all
$cntry = $_GET['cntry'];
if ( $cntry == '' ) //This is line 12, and its 2 x ' not "
{
echo "Please select a country<br><p>";
}
damn it, either you edited or I missed it
anyway, try print_r'ing your $_GET[] array to see what it shows...
Yeah I edited after I realized that I had tried it both ways .
Posted: Thu Oct 13, 2005 4:55 pm
by Lostnode
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 11
Posted: Thu Oct 13, 2005 4:58 pm
by Burrito
Posted: Thu Oct 13, 2005 4:59 pm
by Lostnode
Burrito wrote:

Meh... Ok...
I also tried
and it came out with the right values.
Posted: Thu Oct 13, 2005 5:01 pm
by Lostnode
Ok..... works now.... dunno how....
Posted: Thu Oct 13, 2005 5:02 pm
by Burrito
so try setting $cntry to the URL param and echoing it out...
/me is starting to think there's something else wrong here, post your updated code and I'll look over it more closely.