If I create a file that is only used within other files. i.e: say a login form which is 'included' within another file
<?php include 'login.htm'; ?>
should login.htm have a head and body section or just the code for the form? thx
No, if there is a head and a body in that page then do not add it to the included page
<head> <body> <?php include 'login.htm'; // do not add html head and body in this file. ?> </head> </body>
Thank you.