Skip to content

Instantly share code, notes, and snippets.

@lukemorton
Created November 29, 2010 19:20
Show Gist options
  • Save lukemorton/720405 to your computer and use it in GitHub Desktop.
Save lukemorton/720405 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Testing post values of display:none;</title>
</head>
<body>
<pre><?php var_dump($_POST) ?></pre>
<form method="post">
<input type="hidden" name="hidden-display-block" value="1" />
<input type="hidden" name="hidden-display-none" value="2" style="display:none;" />
<input type="text" name="text-display-block" value="3" />
<input type="text" name="text-display-none" value="4" style="display:none;" />
<input type="submit" name="option" value="Submit with value" />
<input type="submit" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment