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
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 {
>
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
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
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
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
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 :)
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 '
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
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 '
>
>
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
11 matches
Mail list logo