answersLogoWhite

0


Best Answer

Suppose you have checkbox in HTML from and and you are calling that checkbox by name in php , In that case in you don't check and hit submit , You will get Undefined parameter 'name_of _checkbox' As Error.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

PHP does not give an error when no checkbox is checked on an HTML form. However, you can test for a false or zero value of the variable to determine this.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the Error occurs when no checkbox is checked in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

How do you retrieve results of multiple checkboxes in php?

Well that's fairly easy, as - if you done it correctly - every checkbox has a name, and if this checkbox has been ticked, the POST or GET variable will hold a value named "on", after submitting the form. A standard code to check wether it has been submitted and checked can be something like: if(isset($_POST['checkbox1']) && !empty($_POST['checkbox1'])){ do something here... } that's it.


What is a parse error in php?

Parse error in PHP means that your script is invalid - it is not compliant with the programming language specification. After parse error script is no longer executed.


What is the default error handling in PHP?

The default error handling in PHP is simply an error message with a filename, line number, and a small message describing the error. This information however, can be invaluable to increasing the security potential of a website or business.


How do you Display The Error Messages in PHP?

To display your own defined error message in php simply echo error message. To see errro message while query execution simply do mysql_error(); Or so enable syntax error and warnings use error_reporting(1) in the beggining of script.


How can I find the biggest integer my computer can handle using PHP?

You may use the following code to see how far you can push your computer via storing integers; the biggest integer allowed in PHP actually depends on the system PHP is running on, and how big of an integer it allows in its memory. It's advised that, if you really want to do this, that you turn off PHP output limiting, so then you don't get an exhaustion error. <?php for ($i = 0; TRUE; $i++) { echo $i; } ?>

Related questions

How are checkboxes sent to PHP from HTML?

The value associated with the checkbox's name, if it is checked, is the value attribute on the corresponding HTML input element.


What should one do if they encounter a php arrary error?

PHP Array errors can be frustrating for technically inclined computer geniuses. If an error occurs, first attempt to decode the script yourself. If your attempt proves fruitless contact Windows engineers.


How do you retrieve results of multiple checkboxes in php?

Well that's fairly easy, as - if you done it correctly - every checkbox has a name, and if this checkbox has been ticked, the POST or GET variable will hold a value named "on", after submitting the form. A standard code to check wether it has been submitted and checked can be something like: if(isset($_POST['checkbox1']) && !empty($_POST['checkbox1'])){ do something here... } that's it.


What is a parse error in php?

Parse error in PHP means that your script is invalid - it is not compliant with the programming language specification. After parse error script is no longer executed.


How do you post the data from an input type checkbox in a form to MySQL tables using PHP?

using the post command.$_POST['checkboxname'];


What is the default error handling in PHP?

The default error handling in PHP is simply an error message with a filename, line number, and a small message describing the error. This information however, can be invaluable to increasing the security potential of a website or business.


What problems can PHP sleep cause when writing PHP code?

On earlier versions of PHP, when PHP sleep was called on Windows machines, it returned an error. The command can also be interrupted by the Operating System.


How do you Display The Error Messages in PHP?

To display your own defined error message in php simply echo error message. To see errro message while query execution simply do mysql_error(); Or so enable syntax error and warnings use error_reporting(1) in the beggining of script.


What causes the critical error on Windows 10?

Windows 10 does not cause a critical error. In PHP, any syntax, mathematical, or system error can cause an error to occur.


Code keeps appearing after hitting submit on the form to email in PHP are there any suggestions?

There must be an error in the PHP script. Your have to check it to see what's wrong.


What is the database not found error in PHP with MySQL?

It would mean the database you are trying to select in your PHP script couldn't be found, you will need to check to see if you are using the correct details.


In PHP 5.3.4 what is the value of array column?

array_column was not introduced into PHP until 5.5.0, so calling it in 5.3.4 would result in a fatal error, calling an undefined function.