SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  14 May 2010 12:04
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
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.