Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Programming : PHP: Undefined Index & Undefined Offset errors?


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2008
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default PHP: Undefined Index & Undefined Offset errors?

Can anyone help me with what an "Undefined Index" error is in PHP. The other day my website was fine but when I opened it today it sprung up with a load of these errors. Looking at the lines the errors occur on, they all contain a $_POST so im guessing the error is to do with this.

I also keep getting an "Undefined offset" error when I use the following code:

if ($errors[0] == NULL) {
}

I just wanted to check whether the first position in the array holds any value.

Thanks for your help.
__________________
Powered by Yahoo! Answers
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 07:32 PM.