Skip to content

Instantly share code, notes, and snippets.

@LocalCommit
Created April 15, 2015 16:23
Show Gist options
  • Save LocalCommit/39b91074f30054e2904c to your computer and use it in GitHub Desktop.
Save LocalCommit/39b91074f30054e2904c to your computer and use it in GitHub Desktop.
<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>
<?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