Re: [PHP] Re: undefined variable

2006-04-30 Thread Richard Lynch
On Sun, April 30, 2006 6:17 am, Smart Software wrote: > while(query )//here the query is opened Please, JUST post your real code in http://pastebin.com or something! We CANNOT figure out what the [bleep] you really have from this! > { > > > name ?> // record from database >

RE: [PHP] re: undefined variable

2006-04-30 Thread ray . hauge
> Original Message > Subject: [PHP] re: undefined variable > From: "Smart Software" <[EMAIL PROTECTED]> > Date: Sun, April 30, 2006 1:50 pm > To: php-general@lists.php.net > > //get content of textbox > $q = isset($_REQUEST['

Re: [PHP] re: Undefined Variable

2006-04-30 Thread Stut
Smart Software wrote: while(query )//here the query is opened { name ?> // record from database Please fill in your age: //text //textbox, name"; ?> " } Actually a Javascript question, but I seem to be in a rare good mood today, so

Re: [PHP] Re: Undefined Variable Problems...

2005-03-06 Thread Guillermo Rauch
Also, since this is a very massive list with high traffic, quote when necessary. For example, consider this message: > Can i draw something ? Yes you can > Thanks You're welcome In that case quote is quite useful :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] Re: Undefined Variable Problems...

2005-03-06 Thread Nick Zukin
hp-general@lists.php.net Subject: [PHP] Re: Undefined Variable Problems... Please keep responses on the mailing list / newsgroup... Nick Zukin wrote: > Thanks for the quick response. > > Yes, had to turn register_globals on because it broke things. Many of these > sites aren't mine and I h

[PHP] Re: Undefined Variable Problems...

2005-03-06 Thread Jason Barnett
Please keep responses on the mailing list / newsgroup... Nick Zukin wrote: > Thanks for the quick response. > > Yes, had to turn register_globals on because it broke things. Many of these > sites aren't mine and I have no idea what's involved in trying to fix them > all. If you saw a full 1.2 GB

[PHP] Re: Undefined Variable Problems...

2005-03-06 Thread Jason Barnett
Nick Zukin wrote: ... > line 79, if ($forum_admin == 1) { > line 486, $uname = $cookie[1]; > line 216, $pwd = "$user[2]"; > > Line 79 is not part of a function or class. It is the first reference to > $forum_admin in the script. The other two are within functions and the > first call within tho

[PHP] Re: undefined variable notice - how to furn of

2003-01-10 Thread Philippe Saladin
>Everything works fine, just now I'm getting "Notice" messages for every undefined variable or undefined index in arrays.. >So now I have to use issset() everytime to avoid this messages... you would initialize your variables in the beginning of your scripts. With that, you don't need isset(). >.

[PHP] Re: Undefined Variable

2002-11-23 Thread Adriano Santos
Thanks.

[PHP] Re: Undefined Variable

2002-11-23 Thread Derick Rethans
Adriano Santos wrote: My php.ini: error_reporting = E_ALL & ~E_NOTICE I have a form to send of the variables, but my page do not receive values. This my code: I guess you use PHP 4.2.0+; since this version the register_globals setting defaults to off. See http://www.php.net/release_4_2_0.p

[PHP] Re: Undefined Variable

2002-11-23 Thread Adriano Santos
My php.ini: error_reporting = E_ALL & ~E_NOTICE I have a form to send of the variables, but my page do not receive values. This my code: thanks "Derick Rethans" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Adriano Santos wrote: > > Hi, > > > > I'm

[PHP] Re: Undefined Variable

2002-11-23 Thread Derick Rethans
Adriano Santos wrote: Hi, I'm with problem: Undefined Variable. I'm using : PHP 4.2.3 MySql 3.2.39 Windows 2000 How do I make to soluction my problem ? at the top of your script: error_reporting(E_ALL & ~E_NOTICE); or initialize your variables likes: $number = 0; $string = "foo"; Derick --

[PHP] Re: Undefined variable

2002-10-09 Thread Steve Yates
"Muhammad Khairuzzaman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when If you set a variable inside your script called $validuser=true, how would you know if that was POSTed to your

[PHP] Re: Undefined variable

2002-10-09 Thread Johannes Janson
Hi, Muhammad Khairuzzaman wrote: > Hi, thanks for the help! > > I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when > the text from the internet and books I've read says just put a dollar sign > before the variable's name. from php version 4.?.x on register_globals is turn

[PHP] Re: Undefined variable

2002-10-09 Thread Muhammad Khairuzzaman
Hi, thanks for the help! I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when the text from the internet and books I've read says just put a dollar sign before the variable's name. If it wouldn't be a burden can u pls xplain? -- PHP General Mailing List (http://www.php.n

RE: [PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Dave
ge- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Friday, March 15, 2002 3:46 PM >To: Daniel Negron/KBE >Cc: [EMAIL PROTECTED] >Subject: Re: [PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF >(NEWBIE ?) > > >On Fri, 15 Mar 2002, Daniel Negron/KBE wrote:

Re: [PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE?)

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Daniel Negron/KBE wrote: > Thank You Charlie. I also found out that I needed to put an "@" symbol > infrom of the string. This stopped it from throwing me an error. > > If(@$submit) blah blah blah Better yet, use: if (isset($submit)) blah blah blah That explicitly che

Re: [PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Daniel Negron/KBE
| | To: [EMAIL PROTECTED] | | cc

[PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Charlie Killian
>I have error's enabled in php.ini. I keep getting Undefined variable when >I run a script that contains IF or ELSE IF's. Is this normal because the >variable hasn't been set at the beginning of the script ? Yes. If the variable hasn't been defined previously you'll get a warning: if ( $dd >