is there anyway to accept input from another page as a variable, but if none is provided set it to a default, and not recieve an undefined variable error?
<?
if(!$cyv) { $cyv = date("Y"); }
if(!$cmv) { $cmv = date("n"); }
if(!$dmv) { $dmv = date("j"); }
?>
the first time the page loads i get an error these are undefined, but after clicking a link the errors go away, but the values are correct before clicking the link
I mean if I echo the values i get the correct numbers, even though the error says undefined.