quick note: Javascript equivalent to PHP isset variable
Check to see whether or not a variable has been declared
if ( typeof ( $variable ) == ‘undefined’ )
{}
else
{}
Check to see whether or not a variable has been declared
if ( typeof ( $variable ) == ‘undefined’ )
{}
else
{}