I have lot of details that should be printed as ordered list with HTML
in PHP
. If I do it manualy, it takes more coding.
Instead of that can any body help me in indexing with loop for the code. Also I request, if any variable is blank, to avoid the output. My PHP
code is given below.
<?php
$f_name = strtoupper($_REQUEST['f_name']);
$l_name = strtoupper($_REQUEST['l_name']);
$age = strtoupper($_REQUEST['age']);
...............
...............
$place = strtoupper($_REQUEST['place']);
$email = strtoupper($_REQUEST['email']);
$web = strtoupper($_REQUEST['web']);
?>
<b> DETAILS:</b> <br />
<ol>
<li> <?php echo $f_name ?> </li>
<li> <?php echo $l_name ?> </li>
.....
<li> <?php echo $email ?> </li>
<li> <?php echo $web ?> </li>
</ol>