Created
August 17, 2016 01:16
-
-
Save tclancy/2cc6446f1f8311c2c9d784bf3a79c302 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<form> | |
<label for="notes">Notes</label> | |
<input class="u-full-width" placeholder="notes" id="notes" type="text"> | |
<input class="button-primary" value="submit" type="submit"> | |
</form> | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 'on'); | |
if(isset($_GET['notes'])){ | |
print_r($_GET); | |
} else { | |
print "you said nowt!"; | |
} | |
if ($_GET) { | |
print_r($_GET); | |
print 'form'; | |
print $_GET['notes']; | |
exit; | |
} | |
print $_GET['notes']; | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment