Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-12-2005, 01:59 PM
Insin
Unregistered

Posts: n/a

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?
Reply With Quote
  #2  
Old 12-12-2005, 02:01 PM
Insin
Unregistered

Posts: n/a

Wrong forum

Yeah, I meant for this to be in the phPhotoAlbum forum so if you can move it that would be great.
Reply With Quote
  #3  
Old 12-13-2005, 01:14 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

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.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:23 AM.




Powered by vBulletin®