Re: [PHP] no default value

2007-07-18 Thread tedd
At 1:46 PM +0100 7/17/07, Stut wrote: ... but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised. How? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] no default value

2007-07-18 Thread Stut
tedd wrote: At 1:46 PM +0100 7/17/07, Stut wrote: ... but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised. How? Look in php.ini for error_reporting. With it enabled if you try to use a variable

[PHP] no default value

2007-07-17 Thread Man-wai Chang
Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux

Re: [PHP] no default value

2007-07-17 Thread Daniel Gerzo
On Tue, Jul 17, 2007 at 08:01:59PM +0800, Man-wai Chang wrote: Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? Well, I am not aware of such php.ini variable, but I may recomment to

Re: [PHP] no default value

2007-07-17 Thread Stut
Man-wai Chang wrote: Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? I think you'll find they get assigned the value of null, not false. There is no setting that enforces such a requirement,

Re: [PHP] no default value

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 7:01 am, Man-wai Chang wrote: Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? No. There is a parameter in php.ini that tells you when you USE an uninitialized variable,

[PHP] php as default value in html

2004-04-04 Thread Andy B
hi... i have the following html line: input type=text name=referred value=?echo $old['Referred'];? accesskey=d id=id-referred the php variable $old['Referred'] was pulled from a mysql table. the full string that this variable holds is I work for you... but when used as a default value in an

Re: [PHP] php as default value in html

2004-04-04 Thread Mark
--- Andy B [EMAIL PROTECTED] wrote: hi... i have the following html line: input type=text name=referred value=?echo $old['Referred'];? accesskey=d id=id-referred the php variable $old['Referred'] was pulled from a mysql table. the full string that this variable holds is I work for you...

[PHP] php as default value in html

2004-04-04 Thread Andy B
tnx that works now - Original Message - From: Mark [EMAIL PROTECTED] To: Andy B [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, April 04, 2004 11:32 AM Subject: Re: [PHP] php as default value in html --- Andy B [EMAIL PROTECTED] wrote: hi... i have the following html

Re: [PHP] php as default value in html

2004-04-04 Thread John Holmes
Mark wrote: --- Andy B [EMAIL PROTECTED] wrote: i have the following html line: input type=text name=referred value=?echo $old['Referred'];? accesskey=d id=id-referred the php variable $old['Referred'] was pulled from a mysql table. the full string that this variable holds is I work for you... but

[PHP] php as default value in html

2004-04-04 Thread Andy B
htmlentities(), also. input type=text name=referred value=?echo htmlentities($old['Referred']);? accesskey=d id=id-referred Other wise the value could have a double quote within it and a malicious user could effectively end your input text box and inject their own HTML. is there any way to keep

Re: [PHP] php as default value in html

2004-04-04 Thread John Holmes
Andy B wrote: input type=text name=referred value=?echo htmlentities($old['Referred']);? accesskey=d id=id-referred Other wise the value could have a double quote within it and a malicious user could effectively end your input text box and inject their own HTML. is there any way to keep

Re: [PHP] php as default value in html

2004-04-04 Thread Jason Wong
On Monday 05 April 2004 00:34, Andy B wrote: [non-standard quoting snipped] Please use a standard quoting mechanism, eg prefix each line of the quoted message with a ''. Why? Because most mail clients understands the standard quoting styles and are able to display the quoted parts of

[PHP] php as default value in html

2004-04-04 Thread Andy B
is there any way to keep multiple users using the same form from mixing up variables I have no idea what you mean here. if user #1 logs in and starts using a form and then user #2 logs in and starts using the same one as user #1, say by chance they submit it at the same time... is there any

RE: [PHP] php as default value in html

2004-04-04 Thread Larry Brown
submitted simultaneously it know who is who) -Original Message- From: Andy B [mailto:[EMAIL PROTECTED] Sent: Sunday, April 04, 2004 1:35 PM To: [EMAIL PROTECTED] Subject: [PHP] php as default value in html is there any way to keep multiple users using the same form from mixing up

[PHP] [solved][PHP] php as default value in html

2004-04-04 Thread Andy B
When someone pulls up a form and fills it out, they subsequently submit that form. When submitting a form your browser creates a one on one connection with the server where the server inputs the data from your form before or after the next person without mixing the two. (no matter if the two