awalnet-ye.com:
it will not work: because imagen the user enters " " 2 spaces not one. so you will do ?
كود PHP:
if ($var == " " || $var == " " || or $var == " " .....){
//do samething
}
Dr.Nabhan:
$var is allreaddy there so the !isset($myval) will not work becuse it will always give you False
كود PHP:
if ($myval != "")
{
echo "Pla pla";
}
.......................................................
كود PHP:
// let me explane when you type if($me == "") it is the same as
if($me == "\0") {// do somthing
}
// in progaming language, end of string = "\0" so "" == "\0"
// so when you have 2 spaces " " this is like " \0" so, " " != " \0";
//so to check if the value is empty use
ctype_space();
//go to www.php.net/ctype_space