Question

Themans

Can I Insert HTML Within an "if" Statement?

Asked by Themans 2 months ago html php statement

Answers

Csgs
1

Best Answer

Best Answer

 
Yes it is possible. However, only if the $condition is true. In example:

<?php if($condition) : ?>
    <a href="http://designreviver[dot]com">This can only be displayed if $condition is succesful</a>
<?php endif; ?>

by Csgs 2 months ago

Rommel Castro A
1
 
Of curse!!!

by Rommel Castro A 2 months ago

Answer this question

Can I Insert HTML Within an "if" Statement?

0 errors found:

 
0