PHP prompts how to solve the undefined index (multiple methods), undefinedindex
I. Related Information
When you use $ _ post [''] or $ _ get [''] to obtain parameters in a form, the following error occurs: Notice: Undefined index :--------;
And the
$ Act = $ _ POST ['ac'];The above code always promptsNotice: Undefined index: act in F: \ windsflybook \ post. php on line 18In additionReference contentNotice: Undefined variable: Submit ......And so on.Cause: the variable is undefined.Solution:1)
When discussing the primitive data types in Javascript, most people know the basic knowledge, from String, Number to Boolean. These primitive types are quite simple and behavior is common sense. However, this article will focus more on the unique
When $ _ post [''] and $ _ get [''] are used to obtain parameters in the formNotice: Undefined index :--------;
We often receive Undefined index errors when receiving data from form POST, as follows: $ act =$ _ POST ['action'];The above code always
When you use $_post['],$_get[' to get the parameters in the form
Notice
: Undefined index:--------;
We often receive forms POST the data Times undefined index error, as follows: $act =$_post[' action ';Always prompt with the above
Several solutions to undefined index in PHP
I. Related information
$_post[''] $_get[''] It appears when you use or get the parameters in the formNotice: Undefined index: --------;And we often receive the form post come over the data times Undefined
I. Related INFORMATION
$_post['] or $_get['] will appear when you get the parameters in the form notice:undefined index:--------;
Well we often receive forms post come over the data times undefined index error
For example: $act =$_post[' action '];
: This article mainly introduces php programming notes. if you are interested in PHP tutorials, please refer to them. Three methods for php to obtain POST data
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese
I. Related information
Usually use $_post['] or $_get['] to get the parameters in the form will appear notice:undefined index:--------;
And we often receive form post data times undefined index error
For example: $act =$_post[' action ']; Using
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.