Created
April 15, 2015 16:23
-
-
Save LocalCommit/39b91074f30054e2904c 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
<form action="?edit" method="post"> | |
<div> | |
<label for="name">Name: <input type="text" name="name" | |
id="name" value="Joan Smith"></label> | |
</div> | |
<div> | |
<label for="email">Email: <input type="text" name="email" | |
id="email" value="[email protected]"></label> | |
</div> | |
<div> | |
<input type="hidden" name="id" value="2"> | |
<input type="submit" value="Update author"> | |
</div> | |
</form> | |
<h1><a href="http://mysite.local/t"> Index </a> </h1> |
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
<?php | |
echo "<h1>Hi One!</h1>"; | |
include 'form.html.php'; | |
if (isset($_GET['edit'])) | |
{ | |
echo "<h1>Hi Second!</h1>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment