Last active
December 16, 2015 16:59
-
-
Save sashaphanes/5467128 to your computer and use it in GitHub Desktop.
web form
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
#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