[wdvltalk] Re: if.. else.. (php)

2004-02-24 Thread Joseph, Smile Poet
Bj and Sheila, You were both right. Both problems were straight from the tutorial - being a trusting soul I was looking typing errors or excess astigmatism! Not till I tested both together did the error line disappear and the browser page come up as it should. (my next problem is sorting out

[wdvltalk] Re: if.. else.. (php)

2004-02-24 Thread Bj
- Original Message - From: "Joseph, Smile Poet" > -Notice: Undefined variable: meta in Period and equals ".=" is shorthand code for "equals its present value plus what I am adding here" So this line: $meta .= "$this->sitename - ". is shorthand for: $meta = $meta . "mailto:[EMAIL

[wdvltalk] Re: if.. else.. (php)

2004-02-24 Thread Sheila Fenelon
Joseph, Smile Poet wrote: if(!$ptitle){ $meta .= "$this->sitename - ". $meta .= "$this->slogan\n"; }else{ $meta .= "$this->sitename: ". $meta .= "$ptitle\n"; } The syntax is wrong, you're missing semi-colons. Try this if(!$ptitle){ $meta .= "$this->sitename - "; $meta .= "$t

[wdvltalk] Re: if.. else.. (php)

2004-02-24 Thread john . f . hughes
Joseph, I'm just starting on PHP myself, but here's some suggestions. First, have you set a value for $ptitle and is it in scope? Have you tried if($ptitle) rather than if(!$ptitle) to see if it gives a different error that might help? John.