Gary wrote:
> 
> They are not really errors they are reporting that the form fields are 
> empty until the form is submitted.
> Notice: Undefined index:

That means your code is not doing any checking of the incoming data. You 
should always check that the data coming is what you expect it to be. 
It's good programming practice and helps security.

Just add the following to your code and every thing will be fine 
(assuming POST, but works with GET or any other):

if (isset($_POST["myvar name"])) {
   $value = $_POST["myvar name"];
}
else {
   $value = "";
}

I always turn error reporting way up when coding and debugging, it helps 
me to find places where I have undefined variables when the variables 
really *should* be defined ... meaning I have a bug ;)

Jc


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to