| Posted: 14 May 2010 12:04 |
|
|
|
Registered User Currently Offline
|
Posts: 1
Join Date: May 2010
|
Hi All,
How do you use div class' in php such that you can attach html generated by php into that div class. Example
<html>
<head>
</head>
<body>
<div class="border">
</div>
<?php
echo "This needs to go into the class border"
?>
</body>
</html>
|
| Posted: 15 May 2010 15:20 |
|
|
|
Administrator
|
Posts: 1190
Join Date: Mar 2005
|
|
PHP and the HTML templates are separated. Using php code you prepare strings/variables, which are then inserted in the templates. Look at the code.
|