Skip to content

Instantly share code, notes, and snippets.

@sashaphanes
Last active December 16, 2015 16:59
Show Gist options
  • Save sashaphanes/5467128 to your computer and use it in GitHub Desktop.
Save sashaphanes/5467128 to your computer and use it in GitHub Desktop.
web form
#index.php
<html>
<form name="input" action="html_form_action.php" method="get">
Please enter your name: <input type="text" name="user_name">
<input type="submit" value="Submit">
</form>
</html>
#html_form_action.php
<p>
Hello,
<?php echo isset($_GET['user_name']) ? htmlspecialchars($_GET['user_name']) : '.';
?>
How are you? Today's date is
<?php echo date("m/d/Y");
?>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment