
03-12-2007, 12:04 AM
|
|
|
Join Date: Oct 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Yeah, you can do a largest code and put a <?php $something ?>
Like:
PHP Code:
<table width="750" height="24" border="0" align="center"> <tr> <td><div align="center"> <?php $thumbnaillimit=10; //How many thumbnails would you like to be displayed? include("includes/thumbnails.inc.php"); ?> </div></td> </tr> </table> </td> </tr>
or with echo:
PHP Code:
<html> <head> <title>Problema</title> </head> <body>
<?php echo "Nombre: <strong>".$_REQUEST['nombre']."</strong>"; echo "<br>"; switch ($_REQUEST['estudio']) { case 'Primario': echo "Nivel de Estudio Primario"; break; case 'Secundario': echo "Nivel de Estudio Secundario"; break; case 'Terciario': echo "Nivel de Estudio Terciario"; break; default: print "No ingres? Nivel de EstudiO"; } ?>
</body> </html>
Else, you can include a PHP in html like this example:
PHP Code:
<tr> <td valign="top" class="totop"> <span class="totop"><?php echo($comment); ?></span></td> </tr>
Other way, you cant use INCLUDE TAG:
PHP Code:
<?php include("ad.php"); ?> </ br> <p> <?php include("ad2.php"); ?> </p> </DIV>
I hope it helps you
|