Re: [PHP-WIN] newbie question (forms)

2002-12-14 Thread Luis Ferro
Better yet: if (!isset($a)) { $a = ""; } echo $a; ?> If the user passes something in the form, you will see it in the page, if not, it will show a empty string (which is equal to nothing in web, but avoids the warning). Always take note to the warnings... they can be just warn

RE: [PHP-WIN] newbie question (forms)-thank you

2002-12-13 Thread Elvin Certeza
EMAIL PROTECTED] Subject: Re: [PHP-WIN] newbie question (forms) Its just a warning. It tells you that you are using a variable which has no value. Just ignore the notice, or turn down error reporting to exclude notices. All it means is that the variable of $test which you have included in your scrip

RE: [PHP-WIN] newbie question (forms)

2002-12-12 Thread Dash McElroy
This probably has to do with one/both of two things: 1. register_globals is off (not a bad thing - just requires a tidbit more code. see http://php.net/register_globals) 2. A variable is being called before it has been initialized. Example PHP script: First you will get the undefined variable

Re: [PHP-WIN] newbie question (forms)

2002-12-12 Thread Stephen Edmonds
Its just a warning. It tells you that you are using a variable which has no value. Just ignore the notice, or turn down error reporting to exclude notices. All it means is that the variable of $test which you have included in your script HAS NO VALUE. If you were to write something like $test = "I