Re: [PHP] Undefined index....

2013-03-15 Thread Jay Blanchard
[snip] function includeXML($file, $locale, $url, $level = 1) { // stuff $xml = ''; Should work here ... Since the call below is ADDING to $xml you do need something existing to add to so what does that give? [/snip] Thanks Lester, that worked. I had just put that in the wrong place. *s

Re: [PHP] Undefined index....

2013-03-15 Thread Lester Caine
Jay Blanchard 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 each error to solve them. This is a fairly basic error, but I for t

Re: [PHP] Undefined index....

2013-03-15 Thread Serge Fonville
So basically, $xml is out of scope for this function and you are appending to a nonexisting variable? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/fee

Re: [PHP] Undefined index....

2013-03-15 Thread Jay Blanchard
[snip] Two questions: Where is $xml defined and where is $pos defined? [/snip] $xml is defined in other functions, just not in this function. $pos is irrelevant to the question - it is just the string position within the file. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Undefined index....

2013-03-15 Thread Serge Fonville
Hi, Two questions: Where is $xml defined and where is $pos defined? HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncat

[PHP] Undefined index....

2013-03-15 Thread Jay Blanchard
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 each error to solve them. This is a fairly basic error, but I for the life of me canno

Re: [Fwd: Re: [PHP] Undefined Index ...confusion] (RESOLVED)

2009-07-23 Thread Miller, Terion
Thanks On 7/23/09 9:52 AM, "Kyle Smith" wrote: Sorry, list, I did a reply instead of a reply-to-all. This is what I sent to "Miller, Terion" Miller, Terion wrote: > Thanks for the link Kyle!! Great thing there...(seriously I didn't know...I > learn something everyday) > > Anyways the link to

[Fwd: Re: [PHP] Undefined Index ...confusion]

2009-07-23 Thread Kyle Smith
Sorry, list, I did a reply instead of a reply-to-all. This is what I sent to "Miller, Terion" Miller, Terion wrote: Thanks for the link Kyle!! Great thing there...(seriously I didn't know...I learn something everyday) Anyways the link to my script is: http://pastebin.ca/1504393 Your ema

Re: [PHP] Undefined Index ...confusion

2009-07-23 Thread Kyle Smith
Miller, Terion wrote: On 7/23/09 9:24 AM, "Kyle Smith" wrote: 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: We're going to need to

Re: [PHP] Undefined Index ...confusion

2009-07-23 Thread Miller, Terion
On 7/23/09 9:24 AM, "Kyle Smith" wrote: 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: We're going to need to know how the $_SESSION['

Re: [PHP] Undefined Index ...confusion

2009-07-23 Thread Kyle Smith
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: We're going to need to know how the $_SESSION['fullRestaurantList'] gets populated. Als

[PHP] Undefined Index ...confusion

2009-07-23 Thread Miller, Terion
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: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined index error

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 15:39, Jason Pruim wrote: > > Only when you log into certain accounts and view the file after I had made > changes :P I figured you had already changed it, but when you're root, you don't have to log in to other accounts. ;-P > What I'm really going for is given this

Re: [PHP] Undefined index error

2009-01-19 Thread Jason Pruim
On Jan 19, 2009, at 3:28 PM, Daniel Brown wrote: On Mon, Jan 19, 2009 at 14:32, Richard Heyes wrote: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode("/", $_SERVER['REQUEST_URI']); When I view that file, on line 19, I

Re: [PHP] Undefined index error

2009-01-19 Thread ceo
There is no reference to index '2' in that line 19. What is the next line? Something which expects at least 3 elements in the URI, perhaps?... [Hint, hint] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined index error

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 14:32, Richard Heyes wrote: >> Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line >> 19 >> >> and here is Line 19: >> >> $data = explode("/", $_SERVER['REQUEST_URI']); When I view that file, on line 19, I see: echo << Are you sure it's an array

Re: [PHP] Undefined index error

2009-01-19 Thread Jason Pruim
On Jan 19, 2009, at 2:32 PM, Richard Heyes wrote: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $data = explode("/", $_SERVER['REQUEST_URI']); Hi, Are you sure it's an array? Use print_r() or var_dump() on $_SERVER['REQUEST_URI'] on th

Re: [PHP] Undefined index error

2009-01-19 Thread Richard Heyes
> Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line > 19 > > and here is Line 19: > > $data = explode("/", $_SERVER['REQUEST_URI']); Hi, Are you sure it's an array? Use print_r() or var_dump() on $_SERVER['REQUEST_URI'] on the preceding line. Just for testing, you could d

[PHP] Undefined index error

2009-01-19 Thread Jason Pruim
So sometimes I end up with issues that are so simple I should be able to fix it but for some reason I end up asking a stupid question to the list... So... Here goes :) Here is the error: Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line 19 and here is Line 19: $

Re: [PHP] Undefined index:

2007-06-16 Thread Stut
WeberSites LTD wrote: I'm using this code to check if a cookie has a value : If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"])) In case that this cookie is not set, how can i avoid the Undefined index: line in the error log? The isset function does not give an error if you pass it a non-

Re: [PHP] Undefined index:

2007-06-16 Thread tedd
At 2:37 PM +0200 6/16/07, WeberSites LTD wrote: I'm using this code to check if a cookie has a value : If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"])) In case that this cookie is not set, how can i avoid the Undefined index: line in the error log? berber berber: Try this: $loggedIn = i

[PHP] Undefined index:

2007-06-16 Thread WeberSites LTD
I'm using this code to check if a cookie has a value : If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"])) In case that this cookie is not set, how can i avoid the Undefined index: line in the error log? berber

Re: [PHP] Undefined index error

2007-06-10 Thread Richard Lynch
On Sat, June 9, 2007 11:53 pm, Christian Cantrell wrote: > I'm getting this error in my Apache log file, and I can't figure out > why: > > Undefined index: password in /path/to/file.php on line 82 > > Some searching on Google turned up a bunch of questions, but no > answers. > Any idea what this

Re: [PHP] Undefined index error

2007-06-10 Thread Christian Cantrell
Ah, you're right. Thanks, Tijnema. I'm just getting my feet wet with PHP, and you guys are a great help! Christian On 6/10/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/10/07, Christian Cantrell <[EMAIL PROTECTED]> wrote: > I'm getting this error in my Apache log file, and I can't figure out w

Re: [PHP] Undefined index error

2007-06-10 Thread Tijnema
On 6/10/07, Christian Cantrell <[EMAIL PROTECTED]> wrote: I'm getting this error in my Apache log file, and I can't figure out why: Undefined index: password in /path/to/file.php on line 82 Some searching on Google turned up a bunch of questions, but no answers. Any idea what this warning mess

Re: [PHP] Undefined index error

2007-06-09 Thread Robert Cummings
On Sun, 2007-06-10 at 00:53 -0400, Christian Cantrell wrote: > I'm getting this error in my Apache log file, and I can't figure out why: > > Undefined index: password in /path/to/file.php on line 82 Please post the code on that line of the file indicated. Cheers, Rob. -- .-

[PHP] Undefined index error

2007-06-09 Thread Christian Cantrell
I'm getting this error in my Apache log file, and I can't figure out why: Undefined index: password in /path/to/file.php on line 82 Some searching on Google turned up a bunch of questions, but no answers. Any idea what this warning message is referring to? Thanks, Christian

Re: [PHP] undefined index and php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 5:54 am, Ross wrote: > Before someone advises me to 'google' my question. I have and can't > find a > PHP.net example either. > > I have turned off registered globals and am updating my scripts so > they work > but I keep getting an undefined index problem using $_POST > >

Re: [PHP] undefined index and php

2005-11-10 Thread Gustavo Narea
Hello. [EMAIL PROTECTED] wrote: why the question mark and the colon? What is the long hang eqivalent. That's the Ternary operator. Whether you want to get further information, go to: http://php.net/manual/en/language.operators.comparison.php Regards. -- Gustavo Narea. PHP Documentation -

Re: [PHP] undefined index and php

2005-11-10 Thread Jochem Maas
:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 4:58 AM To: php-general@lists.php.net Subject: Re: [PHP] undefined index and php I have never really used this abreviated format before why the question mark and the colon? What is the long hang eqivalent. I turned magic quotes off too. than

RE: [PHP] undefined index and php

2005-11-10 Thread Robbert van Andel
PROTECTED] Sent: Thursday, November 10, 2005 4:58 AM To: php-general@lists.php.net Subject: Re: [PHP] undefined index and php I have never really used this abreviated format before why the question mark and the colon? What is the long hang eqivalent. I turned magic quotes off too.

Re: [PHP] undefined index and php

2005-11-10 Thread ross
;[EMAIL PROTECTED]> Cc: Sent: Thursday, November 10, 2005 12:19 PM Subject: Re: [PHP] undefined index and php Ross wrote: because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. That's because before the submit button has bee

Re: [PHP] undefined index and php

2005-11-10 Thread Jasper Bryant-Greene
Ross wrote: because the following line give the notice 'undefined index' BEFORE the submit button has been pressed.. That's because before the submit button has been pressed, $_POST is empty and so 'heading' is indeed an undefined index. Try: $heading_insert = isset( $_POST['heading'] )

[PHP] undefined index and php

2005-11-10 Thread Ross
Before someone advises me to 'google' my question. I have and can't find a PHP.net example either. I have turned off registered globals and am updating my scripts so they work but I keep getting an undefined index problem using $_POST I tried this to set the value... if (!isset($_POST['headin

RE: [PHP] undefined index

2005-06-17 Thread Kim Madsen
> -Original Message- > From: Ross [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 16, 2005 8:51 PM > if ($quantity == 0){ > > } >else { > > $pieces = explode(" ", $quantity); >$formatted_price = sprintf('%0.2f', $pricecode); > echo " cellspacing=\"5\"> width=\"40\">$pie

Re: [PHP] undefined index

2005-06-16 Thread Philip Hallstrom
I have a bit of code that splices up a cookie into 4 bits so the information can be displayedin a neat way in a table if ($quantity == 0){ } else { $pieces = explode(" ", $quantity); $formatted_price = sprintf('%0.2f', $pricecode); echo "$pieces[0]$pieces[1] $pieces[2] $pieces[3] $pie

[PHP] undefined index

2005-06-16 Thread Ross
I have a bit of code that splices up a cookie into 4 bits so the information can be displayedin a neat way in a table if ($quantity == 0){ } else { $pieces = explode(" ", $quantity); $formatted_price = sprintf('%0.2f', $pricecode); echo "$pieces[0]$pieces[1] $pieces[2] $pieces[3]

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Tobias Neumann
On Mon, 08 Nov 2004 15:52:53 +0600, Raditha Dissanayake wrote: > Quick question: is file uploads enabled on this server and is the > temporary directory writable? Hmm. upload_tmp_dir was unset. The php.ini says that in this case the systems default tempoary directory is used. So I guessed it wou

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 09:07, Tobias Neumann wrote: > I have the same script on two webservers with php 4.3.9 and apache 2, both > with the same php configurations. On one server I can not access > $_FILES or $HTTP_POST_FILES, although a form with a file has been > correctly submitted. Are th

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread raditha dissanayake
Tobias Neumann wrote: Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. Quick question: is file uploads enabled

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Marek Kilimajer
Tobias Neumann wrote: Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. apache_request_headers() contains: [Content

[PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Tobias Neumann
Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. apache_request_headers() contains: [Content-Type] => multipart

[PHP] Undefined index ????

2004-06-09 Thread Michael Jonsson
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: Undefined index: user_status

Re: [PHP] Undefined index ???

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

Re: [PHP] Undefined index ???

2004-06-09 Thread John Nichel
Michael Jonsson wrote: 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 /var/www/itmdata/include/include.php on line 13 Regards Micke That's not an error

[PHP] Undefined index ???

2004-06-09 Thread Michael Jonsson
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 /var/www/itmdata/include/include.php on line 13 Regards Micke -- PHP General Mailing List (http://www.php

Re: [PHP] undefined index -------- please help !!!!!!!!

2004-03-08 Thread Dominique ANOKRE
PROTECTED]> To: "Dominique ANOKRE" <[EMAIL PROTECTED]> Cc: "Php List" <[EMAIL PROTECTED]> Sent: Saturday, March 06, 2004 12:15 PM Subject: Re: [PHP] undefined index please help > Dominique ANOKRE wrote: > > on line 66 there is : >

Re: [PHP] undefined index -------- please help !!!!!!!!

2004-03-06 Thread John Nichel
Dominique ANOKRE wrote: on line 66 there is : $date=$_POST["date"]; Thanks $_POST['date'] isn't set. if ( isset ( $_POST['date'] ) ) { $date = $_POST['date']; } -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] undefined index -------- please help !!!!!!!!

2004-03-06 Thread Dominique ANOKRE
on line 66 there is : $date=$_POST["date"]; Thanks - Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Dominique ANOKRE" <[EMAIL PROTECTED]>; "Php List" <[EMAIL PROTECTED]> Sent: Friday, March 05, 2004 8:20

RE: [PHP] undefined index -------- please help !!!!!!!!

2004-03-05 Thread Chris W. Parker
Dominique ANOKRE on Friday, March 05, 2004 12:19 PM said: > Undefined index: numcpte in c:\inetpub\wwwroot\rech_haut.php on line > 66 > > For information, i have not this error when the file recherche.php is > a simple file without frames !!! > > Please help!! w

[PHP] undefined index -------- please help !!!!!!!!

2004-03-05 Thread Dominique ANOKRE
I have a form which call a php file when click on the submit button : First this runs correctly when i click on the submit buttom then the file recherche.php is executed and the result is displayed. I modify the design of my pages in order to display result into frames. So i create a frameset

RE: [PHP] Undefined Index Errors

2004-02-06 Thread Cameron B. Prince
> 1. put @ in front of each variable, e.g. > $adminID = @$_ENV['HTTP_REMOTE_USER']; This worked very nicely... Thank you! > > Hey guys, > > > > Here's a chunk of code from the top of a multi-function page I converted > > from Perl to PHP: > > > > $userid = $_REQUEST['USERID'];#

Re: [PHP] Undefined Index Errors

2004-02-06 Thread John W. Holmes
From: "Cameron B. Prince" <[EMAIL PROTECTED]> > I'm creating some strings from array elements obviously. The issue is, the > array elements don't always exist depending on which function you are > running. And when they don't, the server log is full of undefined index > errors. Is there a way I ca

Re: [PHP] Undefined Index Errors

2004-02-06 Thread Adam Bregenzer
On Fri, 2004-02-06 at 10:51, Cameron B. Prince wrote: > I'm creating some strings from array elements obviously. The issue is, the > array elements don't always exist depending on which function you are > running. And when they don't, the server log is full of undefined index > errors. Is there a w

Re: [PHP] Undefined Index Errors

2004-02-06 Thread Marek Kilimajer
You can either: 1. put @ in front of each variable, e.g. $adminID = @$_ENV['HTTP_REMOTE_USER']; 2. change your error reporting level: error_reporting(E_ALL ^ E_NOTICE); Cameron B. Prince wrote: Hey guys, Here's a chunk of code from the top of a multi-function page I converted fro

[PHP] Undefined Index Errors

2004-02-06 Thread Cameron B. Prince
Hey guys, Here's a chunk of code from the top of a multi-function page I converted from Perl to PHP: $userid = $_REQUEST['USERID'];# USERID = selected userid $dlist= $_REQUEST['DLIST']; # DLIST = indicates who to display $action = $_REQUEST['ACTION'];# ACTION = in

Re: [PHP] Undefined index???

2003-12-12 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote: I keep getting this error: Notice: Undefined index: tutor_id in /usr/local/.. What does "undefined index" exactly mean?? I did a search on the web but couldn't find any solutions. Basically it mea

Re: [PHP] Undefined index???

2003-12-12 Thread irinchiang
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote: > I keep getting this error: > > Notice: Undefined index: tutor_id in /usr/local/.. > > What does "undefined index" exactly mean?? I did a search on the web but > couldn't find any solutions. Basically it means you're try

Re: [PHP] Undefined index???

2003-12-12 Thread Jason Wong
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote: > I keep getting this error: > > Notice: Undefined index: tutor_id in /usr/local/.. > > What does "undefined index" exactly mean?? I did a search on the web but > couldn't find any solutions. Basically it means you're trying to ac

[PHP] Undefined index???

2003-12-12 Thread irinchiang
Hi all, I keep getting this error: Notice: Undefined index: tutor_id in /usr/local/.. What does "undefined index" exactly mean?? I did a search on the web but couldn't find any solutions. The line that cause this error is as follow: $tutor_id = $_POST["tutor_id"]; . . . .if($actio

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

2003-10-29 Thread John W. Holmes
Terence wrote: Since I started using error_reporting(E_ALL), I havent found (in my opinion) a good way to declare GET and POST variables when getting them from a form or querystring. I have searched google and the docs for several hours now without much luck. if ($HTTP_GET_VARS["i"] == "") { inc

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

2003-10-29 Thread Terence
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> > Terence > on Wednesday, October 29, 2003 4:40 PM said: > > > Since I started using error_reporting(E_ALL), I havent found (in my > > opinion) a good way to declare GET and POST variables wh

RE: [PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Chris W. Parker
Terence on Wednesday, October 29, 2003 4:40 PM said: > Since I started using error_reporting(E_ALL), I havent found (in my > opinion) a good way to declare GET and POST variables when getting > them from a form or querystring. I have searched google and the docs > fo

[PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Terence
Hi List, Since I started using error_reporting(E_ALL), I havent found (in my opinion) a good way to declare GET and POST variables when getting them from a form or querystring. I have searched google and the docs for several hours now without much luck. Is there a better way? I have tried var $

RE: [PHP] Undefined index a different problem

2003-01-07 Thread Matt Schroebel
Try: echo($GLOBALS[$i]); Or echo "{$GLOBALS[$i]}"; This times it's the array in the double quoted strings ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined index a different problem

2003-01-07 Thread Marek Kilimajer
These are not errors, but notices, you can get around it using: if(isset($i) && array_key_exists($GLOBALS, $i)) echo $GLOBALS[$i]; or you might prefer setting error_reporting to not display notices Mekrand wrote: thanks but this time it gives 2 error, undefined variable i, undefined index i for

Re: [PHP] Undefined index a different problem

2003-01-07 Thread Mekrand
thanks but this time it gives 2 error, undefined variable i, undefined index i for $GLOBALS[$i] "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Mekrand wrote: > > >my problem is, > >i have a script that works well before php 4.2.3 > > > >its

Re: [PHP] Undefined index a different problem

2003-01-07 Thread Marek Kilimajer
Mekrand wrote: my problem is, i have a script that works well before php 4.2.3 its sth like that {.. for($i=0; $i should not be echo("$GLOBALS[$i]"); and it gives me notice that undefined index i. how can i solve this problem? thanks -- PHP General Mailing List (http://www.php.n

[PHP] Undefined index a different problem

2003-01-07 Thread Mekrand
my problem is, i have a script that works well before php 4.2.3 its sth like that {.. for($i=0; $ihttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] undefined index....property.

2002-12-16 Thread Martin Towell
you didn't send the code snippet for "Undefined index" however, I think the reason you're getting these errors at home is because you have a different error_reporting level. HTH a bit Martin [snip] //filled out info and clicked send. Notice: Undefined index: license in c:\inetpub\wwwroo

[PHP] undefined index....property.

2002-12-16 Thread Bruce Levick
Sorry I did not mention. My local machine is WinXP pro, running php 4.2 and mysql 3.23. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] undefined index....property.

2002-12-16 Thread Bruce Levick
I have just setup my localmachine to see how our site runs on php 4.2. It currently runs on 4.1 on the server. I am only fairly new to this so I have come across a slight hurdle. At first logging in as a user to the database was giving "undefined variable" error. Have read up on this and fixed it

[PHP] Undefined index:

2002-10-01 Thread Voisine
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'] == "New") { Undefined

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

2002-09-06 Thread Meltem Demirkus
I had the say problem, try this if($_POST['update'] == "Update") { someting to do... } - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Jens Winberg'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: F

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

2002-09-06 Thread Jay Blanchard
[snip] 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 } [/snip] As a quick troubleshooting method echo or print $_GET['action'] to see what, if anything, is contained there. I woul

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

2002-09-06 Thread Jens Winberg
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 in Ealier (other ve

Re: [PHP] Undefined index error

2002-08-19 Thread Michael Sweeney
If you try to access a form variable that hasn't been set, you get an undefined index. Try checking with something like if(isset($_POST['SortBy'])) { // do something with 'SortBy' } In any case, you'll get the undefined index warning anytime you try to read an array index that hasn't been set

[PHP] Undefined index error

2002-08-19 Thread Shu Chow
I'm using the superglobal $_POST array to access URL parameters passed to my page. I was getting undefined constant errors in my error_log file, and found that I needed to quote the variables in the array. $_POST['SortBy'] etc. Now, it appears that I've just traded the undefined constant er

Re: [PHP] Undefined Index

2002-08-02 Thread Chris Hewitt
Jrgen wrote: > >$op = $_GET['op']; >switch ( $op ) > >PHP shoots a Notice Message telling me that there is an undefined index >Undefined index: act in g:\apache_web\intern\looney\index.php on line 177 > If there is not a get variable in the url you will get the warning. >Ok, am i correct in assu

[PHP] Undefined Index

2002-08-02 Thread Jürgen
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": DoLogin(); break; defau

RE: [PHP] Undefined index?

2001-07-11 Thread Philip Olson
Original Message- > > From: Ivo Stoykov [mailto:[EMAIL PROTECTED]] > > Sent: 11 iulie 2001 17:21 > > To: [EMAIL PROTECTED] > > Subject: [PHP] Undefined index? > > > > > > Hi everybody > > > > Does anybody knows what means "Un

RE: [PHP] Undefined index?

2001-07-11 Thread Adrian Ciutureanu
PHP will report that you are trying to access an undefined index array. > -Original Message- > From: Ivo Stoykov [mailto:[EMAIL PROTECTED]] > Sent: 11 iulie 2001 17:21 > To: [EMAIL PROTECTED] > Subject: [PHP] Undefined index? > > > Hi everybody > > Does any

[PHP] Undefined index?

2001-07-11 Thread Ivo Stoykov
Hi everybody Does anybody knows what means "Undefined index" error? I couldn't find it in docs neither in php online doc site. Thank you Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont