If your HTML page looks like this:
<input type="checkbox" name="test" value="value1">
After submitting the form you can check it with:
isset($_POST['test'])
or
if ($_POST['test'] == 'value1') ...
More Related Contents:
- Get $_POST from multiple checkboxes
- Multiple inputs with same name through POST in php
- method=”post” enctype=”text/plain” are not compatible?
- How to prevent form resubmission when page is refreshed (F5 / CTRL+R)
- POST an array from an HTML form without javascript [duplicate]
- Send value of submit button when form gets posted
- Submit an HTML form with empty checkboxes
- PHP POST not working
- getting a checkbox array value from POST
- PHP $_POST not working? [duplicate]
- Simple form not sending data via _POST [duplicate]
- POST arrays not showing unchecked Checkboxes
- Syntax error unexpected '<' [duplicate]
- HTML Form/PHP connected but MySQL is empty
- PHP Errors – Total of four [closed]
- (PHP) Warning: file_get_contents() [function.file-get-contents]: couldn’t resolve host name
- php $_POST array empty upon form submission
- HTML input arrays
- Best way to avoid the submit due to a refresh of the page
- Posting array from form
- PHP header() redirect with POST variables [duplicate]
- getting multiple checkboxes names/id’s with php
- Prevent Back button from showing POST confirmation alert
- GET vs. POST Best Practices
- how do I get all checkbox variables even if not checked from HTML to PHP?
- Setting POST variable without using form
- Forbidden Error When Submitting Simple PHP Form
- navigate back with PHP form submission
- multi-dimensional array post from form
- Undefined index error PHP