Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   isset() use (https://novahq.net/forum/showthread.php?t=38654)

Insin 12-12-2005 01:59 PM

isset() use
 
I notice that you don't use isset() function to determine if a post variable is set, which throws undefined index errors if they're not.

Shouldn't these be in place as a precaution?

Insin 12-12-2005 02:01 PM

Wrong forum
 
Yeah, I meant for this to be in the phPhotoAlbum forum so if you can move it that would be great.

Scott 12-13-2005 01:14 PM

Honestly, I really don't like that function very much. It's almost just like using If($var), because even if $var was never set If would not continue.. I don't think that's why you get the index errors. I never got any errors in my testing, but then again I dont test with E_ALL. Maybe i should from now on.

I'll look into it.

For now put
error_reporting(7); at the top of the script to get rid of the index errors.


All times are GMT -5. The time now is 03:59 AM.

Powered by vBulletin®