try this..
?
if(true)
{
?
Raw html code here for
as long as
you want
?
}
else
{
?
More
Raw
Html
Code
Here
?
}
I believe that this feature is way underutilized by php developers. Tying
If someone has already replied to this I apploigize for a double post.
You need to put in brackets after the if statement and end bracket before the else and
then
another open after the else, lastly you need to close with a bracket.
Example:
?php
if (strstr($DomResults,$Match)) {
] Re: Can If Else statements be split into code blocks??
try this..
?
if(true)
{
?
Raw html code here for
as long as
you want
?
}
else
{
?
More
Raw
Html
Code
On Wed, 14 Nov 2001 11:43, Brad Melendy wrote:
Ok, I figured out that just using echo seems to be the best way to do
this under PHP. In ASP, you can end your code block and start in with
HTML, but I couldn't get that to work with PHP. However, I was able to
just use the echo statement to
with a $variable in it.
EOF;
jack
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 8:21 PM
To: Brad Melendy; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Can If Else statements be split into code
blocks??
On Wed, 14 Nov 2001 11:43, Brad Melendy wrote
5 matches
Mail list logo