I have one major script that collects data and verifies that data before handing off to another script that writes it to the database. The first script has twenty or so different HTML forms to collect data.
Okay I would like to move each HTML form into a template file and then include the template files in the php script, thus making the code easy to read and allowing our designer, we love ya DF, to work on the templates independantly.
What is the best way to go about this so that
becomesCode:<?php code line code line ?> <label> <input> <submit> <?php $check.item code line code line
Should I be turning off the php in the include file and will it then render the html, or should I somehow echo or print the html lines?Code:<?php code line code line include(html.tmp) $check.item code line code line




Reply With Quote