![]() |
What is Notice: Undefined index: .. ?
I have created a simple submitting form in PHP at school and run it into XAMPP. It work and there is no error or "notice". but when I got home and run the SAME code with no editing in my XAMPP that I downloaded (XAMPP 1.7.5 beta7) it displayed "Notice: Undefined index .."
What could be the PROBLEM? is it the SETTINGS OF XAMPP? or THE CODE ITSELF? help please .. wanting to learn PHP badly! Thanks! |
Re: What is Notice: Undefined index: .. ?
1 Attachment(s)
My screenshot is attached to this post.
|
Re: What is Notice: Undefined index: .. ?
1 Attachment(s)
This is the code:
Code:
<?php |
Re: What is Notice: Undefined index: .. ?
Check isset for each of your post variable because if you have notices turned on in the home setup.
|
Re: What is Notice: Undefined index: .. ?
Is there a way to turn off NOTICE?
|
Re: What is Notice: Undefined index: .. ?
Yes. You can use error_reporting function to display only the errors and not the warnings and notices.
See http://www.php.net/manual/en/errorfu...rror-reporting But remember enabling E_NOTICE during development has debugging benefits |
Re: What is Notice: Undefined index: .. ?
Whoa! it worked! Thanks! :) I'll note that .. :happy:
|
| All times are GMT +5.5. The time now is 11:41. |