Created
April 10, 2015 06:10
-
-
Save LocalCommit/4ffa02192d5277e02422 to your computer and use it in GitHub Desktop.
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Form Example</title> | |
</head> | |
<body> | |
<form action="name.php" method="post"> | |
<div><label for="name">Name: | |
<input type="text" name="name" id="name"></label> | |
</div> | |
<div><input type="submit" value="GO"></div> | |
</form> | |
</body> | |
</html> |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Form Example</title> | |
</head> | |
<body> | |
<p> | |
<?php | |
$name = $_REQUEST['name']; | |
if ($name == 'Kevin') | |
{ | |
echo 'Welcome, oh glorious leader!'; | |
} | |
?> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment