What's the error, just a parse error on line xx? O tend to do a lot of echo 'ing, so this suggestion may not be much help. How about adding a semicolon? <? If ($varA == True) { ; ?>
Miles At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote: >Hello: > >In ASP I can write a Conditional statement like this: > ><% If $varA == True Then %> >Straight HTML in here that only displays if $varA == True ><% Else %> >Straight HTML in here that only displays if $varA != True ><% End if %> > >Translating this to PHP doesn't work: > ><? If ($varA == True) { ?> // error is generated here ... > > >Is there some way to do it this way in PHP? I'd rather not create a huge >variable and then echo that. > >Thanks in advance. > > >Robert Dyke >Montana Software >http://www.montanasoft.com/ >[EMAIL PROTECTED] > >* For the best results please include the text of this message (cut and >paste if necessary) in your reply * > > > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]