Skip to content

Instantly share code, notes, and snippets.

@lornajane
Created September 20, 2012 16:03
Show Gist options
  • Save lornajane/3756788 to your computer and use it in GitHub Desktop.
Save lornajane/3756788 to your computer and use it in GitHub Desktop.
My First Form
<form method="post">
Name: <input type="text" name="name" />
<br />
<input type="submit" />
</form>
<?
if($_POST) {
echo "Hello, " . filter_input(INPUT_POST, "name", FILTER_SANITIZE_STRING);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment