Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
you mean after "" ??? no you do not put. just think this way, if you want to diplay the HTML content just jump out by the php code by typing "?>" and back to PHP by " > You do realize that you don't need a semicolon right after correct? > > -Dan > > On Tue, 2003-09-02 at 04:59, Viraj Kalinga A

Re: [PHP] Block HTML Control

2003-09-02 Thread Dan Anderson
You do realize that you don't need a semicolon right after Seth, > try to mingle PHP and HTML.. that means escape the PHP and jump to HTML > when > you want the HTML.. like this... > > > if (!$var) { > ?> > > > ; > } else { >

Re: [PHP] Block HTML Control

2003-09-02 Thread Leif K-Brooks
Seth Willits wrote: Aaa ok. I was confused with the semi colon and colon used in the last example. This clears it all up. Thanks. http://us3.php.net/manual/en/control-structures.alternative-syntax.php -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt t

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 02:06 AM, Viraj Kalinga Abayarathna wrote: Seth, Aaa ok. I was confused with the semi colon and colon used in the last example. This clears it all

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, rgd viraj Seth Willits wrote: > > On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: > > >> > >> > >> Lots of > >> > >> > > > > Awesome. Thanks for the quick repl

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, try to mingle PHP and HTML.. that means escape the PHP and jump to HTML when you want the HTML.. like this... happy coding Viraj Seth Willits wrote: > > I'd like to show a big chunk of

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: Lots of Awesome. Thanks for the quick reply. Hmm.. Actually, how does this work with php & html? This is actually what I'm trying to do. I should have said this in the first place, sorry :)

Re: [PHP] Block HTML Control

2003-09-02 Thread Raditha Dissanayake
you can try if( $var) require("1.html"); else require("2.html"); Seth Willits wrote: I'd like to show a big chunk of HTML if a particular variable is true, and if its false I'd like to show a different big chunk of html. Right now the only way I know of doing this is: if ($var) { print '

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 12:03 AM, Jason Wong wrote: Lots of Awesome. Thanks for the quick reply. Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for RE

Re: [PHP] Block HTML Control

2003-09-02 Thread Jason Wong
On Tuesday 02 September 2003 15:00, Seth Willits wrote: > I'd like to show a big chunk of HTML if a particular variable is true, > and if its false I'd like to show a different big chunk of html. Right > now the only way I know of doing this is: > > if ($var) { > print ' > >

[PHP] Block HTML Control

2003-09-02 Thread Seth Willits
I'd like to show a big chunk of HTML if a particular variable is true, and if its false I'd like to show a different big chunk of html. Right now the only way I know of doing this is: if ($var) { print ' '; } else { pri