Created
April 6, 2011 02:48
-
-
Save saturngod/905039 to your computer and use it in GitHub Desktop.
check box with form for php
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
<html> | |
<head> | |
<title>checkbox</title> | |
</head> | |
<body> | |
<form action="test.php" method="post"> | |
<input type="checkbox" name="chk[]" value="1"/>Check1<br/> | |
<input type="checkbox" name="chk[]" value="2"/>Check1<br/> | |
<input type="checkbox" name="chk[]" value="3"/>Check1<br/> | |
<input type="submit" value="Submit"/> | |
</form> | |
</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
<?php | |
print_r($_POST); | |
//will see chk array | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment