[PHP] Re: Undefined index....

2013-03-15 Thread Tim Streater
On 15 Mar 2013 at 13:10, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: I have inherited a mess of a home-grown PHP framework that literally fills the error_log with 100's of thousands of messages each day. First order of business was rotating the logs, now we are working through

[PHP] Re: Undefined Index ...confusion

2009-07-23 Thread Peter Ford
Miller, Terion wrote: I keep getting this error while trying to use the field 'ID' to pass in a url.. And it's odd because the query is pulling everything BUT the ID which is the first field... code: a href=view.php?ID=?php echo $_SESSION['fullRestaurantList']['ID']??php echo

[PHP] Re: Undefined index:

2007-06-16 Thread Al
There is obviously something else wrong. That's the purpose of isset(); Comment out your line and see what happens. I'd guess the real problem is later in your code when you are trying to do something with $HTTP_COOKIE_VARS[LoggedIn] even though your isset() test said it didn't exist.

[PHP] Re: undefined index and php

2005-11-10 Thread Mark Rees
I tried this to set the value... if (!isset($_POST['heading'])) { $_POST ['heading'] = ; } because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. ? $heading_insert= stripslashes($_POST['heading']);? What everyone else said, but also:

Re: [PHP] Re: undefined index and php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 8:38 am, Mark Rees wrote: It's not good practice (in fact I don't even know if it's possible) to It's definitely possible in the sense that you can cram things in there. You can store your lunch in the trash can and pull it back out when it's time to eat. Neither of

[PHP] Re: Undefined index ???

2004-06-09 Thread Torsten Roehr
Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error## Notice: Undefined index: user_status in

[PHP] Re: Undefined index ???

2004-06-09 Thread Michael Jonsson
No, it's not set to NULL it just emty... .M Torsten Roehr wrote: Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error## Notice:

[PHP] Re: Undefined index ???

2004-06-09 Thread Torsten Roehr
Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] No, it's not set to NULL it just emty... Empty means: $_SESSION['user_status'] = ''; or $_SESSION['user_status'] = 0; Not setting it does NOT mean it's empty. Torsten .M Torsten Roehr wrote: Michael Jonsson

[PHP] Re: Undefined index ???

2004-06-09 Thread Michael Jonsson
No, it's not set to NULL it's just emty... .M Torsten Roehr wrote: Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error##

[PHP] Re: Undefined index ????

2004-06-09 Thread Justin Patrin
Michael Jonsson wrote: Hi Why do I get an error if the $_SESSION['user_status'] is emty (it's not set to anything) ??? in my redhat 9 it did mork, but when I moved to Fedora Core 2 it's not working... Script## session_start(); echo $_SESSION['user_status']; #error## Notice:

[PHP] Re: Undefined Index - is this how you declare get post?

2003-10-29 Thread Jon Kriek
settype(), isset(), and empty() checks will all bypass this, but there is no need to have error reporting set that high ... error_reporting(2047); -- Jon Kriek http://phpfreaks.com Terence [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi List, Since I started using

[PHP] Re: Undefined index:

2002-10-02 Thread Erwin
Voisine wrote: Hi, I'm learning php from a book but because of global off I have have several Undefined index message! I don't want to change the default setting in my php.ini because I want to learn the good way. What I'm doing wrong? Undefined index: categorie if ($_POST['categorie']

[PHP] Re: Undefined index, Undefined variable, Undefined constant....

2002-09-06 Thread Erwin
Jens Winberg wrote: I'm having trouble with the newest version of PHP (4.2.2). For example in a page I'm using the following code: if ($_GET['action'] == logout) { //do something } But I'm getting an error message that says: ...log_message reports: PHP Notice: Undefined index: action

[PHP] Re: Undefined Index

2002-08-02 Thread Lars Olsson
Hi! JüRgen wrote: It's me again, i don't mean to be a bugger, but i really like to learn as much as possible, that's why i ask (or will ask so many questions). Consider the following (i shortened this a lot, but it will do the trick) $op = $_GET['op']; switch ( $op ) { case admin:

[PHP] Re: Undefined Index

2002-08-02 Thread lallous
do this: $op = isset($_GET['op']) !empty($_GET['op']) ? $_GET['op'] : ''; JüRgen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It's me again, i don't mean to be a bugger, but i really like to learn as much as possible, that's why i ask (or will ask so many