Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to insert if php in html

<?php if($condition) : ?>
   <a href=" website_name.com "> it is displayed iff $condition is met </a>
<?php elseif($another_condition) : ?>
   HTML TAG HERE
<?php else : ?>
   HTML TAG HERE
<?php endif; ?>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #insert #php #html
ADD COMMENT
Topic
Name
1+4 =