473,383 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

URGENT: Index Not found error

Hi all

I have a php form which refers to variables like -

$HTTP_POST_VARS
$_GET
$POST

etc.

What happens is that these variables are not recognized and i get the
following error -

PHP Notice: Undefined index: status in
c:\inetpub\wwwroot\sma\members\login.php on line 71

here status is being referred to as :-

$_GET['status']

is there anything wrong with my php settings? The same code works fine
on my ISPs web server.

Please let me know why this is happenning and how to correct it - and
its needed to be fixed asap.

Thanks in advance

EY

Jul 17 '05 #1
3 1563
.oO(ea****@rediffmail.com)
What happens is that these variables are not recognized and i get the
following error -

PHP Notice: Undefined index: status in
c:\inetpub\wwwroot\sma\members\login.php on line 71
When do you get this error/notice? A bit more code and some more
explanations would be helpful.
here status is being referred to as :-

$_GET['status']

is there anything wrong with my php settings? The same code works fine
on my ISPs web server.


Of course $_GET['status'] only exists if the page in question was called
with an URL parameter of this name, e.g.

example.com/foo?status=42

or if a form was submitted with an input element named 'status'. If you
call the page directly without any form or parameters then PHP will
complain about the unknown index.

Micha
Jul 17 '05 #2
Most instances of PHP, by default, have notices turned off. Most likely
the case with your ISP. You can change your error settings in your ini
file. The error you're getting is basically telling you that you have
an undefined variable. Since PHP doesn't really care about undefined
variables, it throws you a notice instead of a typical warning or fatal
error. If you want to keep notices on for whatever reason, you'll have
to put a condition around the undefined variables to check to see if
they have a value.

Jul 17 '05 #3
Thanks!

The problem was i waz trying to use $_Session['xyz'] and before using
this variable one has to call - session_start() !!

without which session variables don't work. Ofcourse notices are turned
on in the error reporting thus those messages!

Now its fixed

Cheers

EY!

colyn wrote:
Most instances of PHP, by default, have notices turned off. Most likely the case with your ISP. You can change your error settings in your ini file. The error you're getting is basically telling you that you have
an undefined variable. Since PHP doesn't really care about undefined
variables, it throws you a notice instead of a typical warning or fatal error. If you want to keep notices on for whatever reason, you'll have to put a condition around the undefined variables to check to see if
they have a value.


Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tracy | last post by:
Hi, I need help urgently. Yesterday i move a tables and indexes to different tablespace using these command: alter table my_table move tablespace xyz; alter index my_index rebuild tablespace xyz;...
2
by: Chris | last post by:
Hi, I developed a COM+ Server application on my XP machine. It works excellent. I exported as server application and then installed it in a windows 2003 server. I then exported it as a Proxy...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
8
by: Tim::.. | last post by:
Can someone please tell me why I keep getting the following error for some of my web application users but not others??? Even though the application runs from a central webserver??? Thanks for...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
5
by: SeanT | last post by:
Greetings and salutations! I am having a real issue with the VB.NET TreeView control. I need to display an image (a.k.a. logo, picture, etc) from a file as the treenode object. I can not seem to...
0
by: Együd Csaba | last post by:
> -----Original Message----- > From: pgsql-admin-owner@postgresql.org > On Behalf Of Együd Csaba > Sent: 2004. július 16. 12:23 > To: pgsql-admin (E-mail) > Subject: URGENT - Postgres won't...
3
by: coopst1 | last post by:
below is my almost completed code. I need help trying to figure out how to display to a textarea all the data I have in phpMyAdmin (database). I have two methods near the bottom called itemResults()...
0
by: okonita | last post by:
Hi all, I am running a recover tocopy procedure and twice with different image copy I found this informational message AND no data recovered: DSNUCBAL - THE IMAGE COPY DATA SET...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.