Hi all,
I'm not a pro by any means but know the extreme basics of ASP VB. I know that IF statements can leak outside of the % tags, for basic example:
<% IF condition THEN %>
[Enter a load of html here]
<% ELSE %>
[More html here]
<% END IF %>
I'm trying to get to grips with the equivilent in php. Am I right in saying that every line of html produced as a result of an IF statement needs to have 'echo' in front of it, and stay within the php tag? Or can it be done similar to ASP?
I'm not a pro by any means but know the extreme basics of ASP VB. I know that IF statements can leak outside of the % tags, for basic example:
<% IF condition THEN %>
[Enter a load of html here]
<% ELSE %>
[More html here]
<% END IF %>
I'm trying to get to grips with the equivilent in php. Am I right in saying that every line of html produced as a result of an IF statement needs to have 'echo' in front of it, and stay within the php tag? Or can it be done similar to ASP?