Skip to content

Instantly share code, notes, and snippets.

@dreamingbinary
Created August 17, 2016 08:07
Show Gist options
  • Save dreamingbinary/04a8ecf39c0b691ea015d4006892ea5a to your computer and use it in GitHub Desktop.
Save dreamingbinary/04a8ecf39c0b691ea015d4006892ea5a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<body>
<?php
if(!isset($_POST['test_field'])) {
print $_POST['test_field'];
}
?>
<form method="POST" action="<?PHP print $_SERVER['PHP_SELF']; ?>">
<input type="text" name="test_field" value="test"/>
<input type="submit" value="Submit" />
</form>
</body>
</html>
@dreamingbinary
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment