[!--quoteo(post=374067:date=May 15 2006, 12:05 PM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ May 15 2006, 12:05 PM)
Thanks alpine [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
But what about varibles that weren't set?
Will any error occur? And is $var's value going to stay 1?
First off, your code here isn't logical because you are setting $var to be $age only when $age don't exist - so it would never echo anything
a variable that don't exist (isn't set) won't echo anything
$age = $_GET['age'];
$var = 1;
$age = $var;
// prints out 1 if $age is empty, else it will echo whatever $age contains