Skip to content

Instantly share code, notes, and snippets.

@tclancy
Created August 17, 2016 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tclancy/2cc6446f1f8311c2c9d784bf3a79c302 to your computer and use it in GitHub Desktop.
Save tclancy/2cc6446f1f8311c2c9d784bf3a79c302 to your computer and use it in GitHub Desktop.
<!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