On Sunday 23 December 2001 03:11 pm, Robert Dyke wrote:
> <% 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 %>
$varA was true.
$varA was false.
I heavily dislike this cod
I apologize for not including all of the information. I did this as an
include file, which explains why it isn't working:
< !--- beginning of myinclude.php >
< ! --- end of myinclude.php --- >
< ! beginning of testfile.php --- >
Html here that should display only if $varA == Tr
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 %>
>
>Transl
Took a better look at your code -- you've capitalized "true" -- that may be
it.
Bogdan
--
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]
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?
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
Make sure you close the accolade afterwords in PHP -- other than that, yes,
it works just fine!
For example this should work just fine:
-
Found a multiple of three!
--
Bogdan
Robert Dyke wrote:
> Hello:
>
> In ASP I can write a Conditional statement like this:
>
> <% If $va
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:
// error is generated he
7 matches
Mail list logo