Re: [PHP] Newbie - Undefined Index Variable

2008-03-08 Thread tedd
At 11:59 AM -0800 3/7/08, revDAVE wrote: I have this: page1';}else{print 'page2';} ?> I will get the error: Notice: Undefined index: nowtoctype in ... If the variable has not yet been defined... Is there a way to check if this var is already defined? ... (and then I can define it - if not)

Re: [PHP] Newbie - Undefined Index Variable

2008-03-07 Thread Daniel Brown
On Fri, Mar 7, 2008 at 2:59 PM, revDAVE <[EMAIL PROTECTED]> wrote: > I have this: > > > {print 'page1';}else{print 'page2';} ?> > > I will get the error: > > Notice: Undefined index: nowtoctype in ... Check out isset(): http://php.net/isset Page 1\n"; } else { echo "Page 2\n"

[PHP] Newbie - Undefined Index Variable

2008-03-07 Thread revDAVE
I have this: page1';}else{print 'page2';} ?> I will get the error: Notice: Undefined index: nowtoctype in ... If the variable has not yet been defined... Is there a way to check if this var is already defined? ... (and then I can define it - if not) -- Thanks - RevDave Cool @ hosting4days .