Geoff Martin wrote:
I have a page that receives data from a form. Using $_POST['foo'], I am able to use this data in the page but I continually receive an error notice (PHP Notice: Undefined index: foo in /Library/WebServer/Documents/.. etc).

This happens to all three indices that are passed by this form, yet the data IS appearing. How do I prevent these error messages?

You have two options, you can either

[a] disable notices (by using error_reporting())
or
[b] verify indices by using functions such as array_key_exists() etc.

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



Reply via email to