Off Topic > Off Topic
PHP in a nutshell
theviacom:
echo $_POST['sanity'];
Notice: Undefined index: sanity in index.php on line 1
TheABELBOTO:
lol epic coder meme dude XD
bestguy22:
Haha What Is The Joke? Haha
Headcrab Zombie:
Is this supposed to be a bad joke? Because this makes perfect sense to me?
You'll want to throw in a check to make sure that key exists, instead of just assuming it does and echoing it
if(isset($_POST['sanity']))
echo $_POST['sanity'];
Zloff:
there is no check because the error is unfortunately the punchline
my supervisor has a coffee cup that says "php (pretty hot programmer)" and it makes me want a career change