Hi all
I have experience with php & html, but self taught without knowing best way regarding structure.
I want to discuss the best way to mix php & html. I've always found the below way of embedding php in html works, but looks so messy, and is horrible to navigate through...
<html>
<title>My Title</title>
<body>
<?php
include('include.php');
//... Various php code...
?>
<a href="./page2.php">Add Question</a>
//... Various html code...
<?php
//...more php...
?>
</body>
Is there a better more structured and clean way to go about large projects which require an html frontend with lots of php scripting?