If the checkbox is checked, then the checkbox’s value will be passed. Otherwise, the field is not passed in the HTTP post.
if (isset($_POST['mycheckbox'])) {
echo "checked!";
}
More Related Contents:
- how do I get all checkbox variables even if not checked from HTML to PHP?
- Get $_POST from multiple checkboxes
- How to read if a checkbox is checked in PHP?
- Submit an HTML form with empty checkboxes
- Delete multiple rows by selecting checkboxes using PHP
- How come checkbox state is not always passed along to PHP script?
- POST arrays not showing unchecked Checkboxes
- Something wrong with PHP
- Make a variable height div? [closed]
- Referring to an id from url on a php page [closed]
- Get Data with PHP [closed]
- What is the purpose of compiling css/scss? [closed]
- Is the following code valid? [closed]
- Using .htaccess to make all .html pages to run as .php files?
- How do I make a PHP form that submits to self?
- How to prevent multiple inserts when submitting a form in PHP?
- HTML Scraping in Php [duplicate]
- Could not instantiate mail function. Why this error occurring
- Equivalent of include() in HTML
- file_get_contents() give me 403 Forbidden
- PHP – empty $_POST and $_FILES – when uploading larger files
- How to preview an image before and after upload?
- Sanitizing HTML input
- PHP – Secure member-only pages with a login system
- Continuing overflowed text in a different div?
- Regex matching table rows in HTML [duplicate]
- How to post multiple as array in PHP?
- HTML 5 multi file upload with PHP
- multiple buttons on a form
- mysql_fetch_array skipping first row