Handling notices
Posted: Mon Apr 06, 2009 8:48 pm
I'm creating a new script and have enabled notices for debugging purposes. What is the best way to handle Notices? (e.g. Notice: Undefined property: whatever in /path/file.php on line 79)
Is there a better way to display data on a page without causing those notices than something like this:
<input name="first_name" value="<?php if (isset($first_name)) { echo $first_name; } ?>">
What is the common practice?
Is there a better way to display data on a page without causing those notices than something like this:
<input name="first_name" value="<?php if (isset($first_name)) { echo $first_name; } ?>">
What is the common practice?