if($_GET['var'])
instead of
if (isset($_GET['var']))
it works fine on my localhost, before i moved to XAMPP,
"I believe XAMPP is better or even the best, so i moved to .."
but when i'm testing my old scripts on xampp i get this error with script like this one
- Code: Select all
<?php
if($_GET['var']){
echo $_GET['var'] ;
}else{
echo "err";
}
?>
the error :
- Code: Select all
Notice: Undefined index: var in /opt/lampp/htdocs/account/ro.php on line 2
err
I wanna some way to get over this, so not have to change my scripting way or all my files
any ideas ?
thanks a lot