$message .= "<tr><th>First Name</th><td>".$_POST['fname']."</td><th>Last Name</th><td>".$_POST['lname']."</td></tr>";
$message .= "<tr><th>Email</th><td>".$_POST['email']."</td><th>Telephone number</th><td>".$_POST['telno']."</td></tr>";
$message .= "<tr><th>Company Name</th><td>".$_POST['cname']."</td><th>Mobile number</th><td>".$_POST['mobileno']."</td></tr>";
$message .= "<tr><th>Address</th><td>".$_POST['address']."</td><th>City</th><td>".$_POST['city']."</td></tr>";
$message .= "<tr><th>Zip Code</th><td>".$_POST['zipcode']."</td><th>State</th><td>".$_POST['state']."</td></tr>";
$message .= "<tr><th>Country</th><td>".$_POST['country']."</td><th>Fax</th><td>".($_POST['fax'] == '' ? 'NA' : $_POST['fax'])."</td></tr>";
$message .= "<table>";
Just want to write HTML and PHP separately how to write?
Please show in different way to write PHP and HTML file?
I want to write
$message
ie variable only once in the program?
Also show how to write this code HTML and PHP in same page of file.php
but splitting HTML and PHP