I have a registration page, after the the registration the form will be generated to the applicant(containing all the form field which was filled by each applicant) which i retrieved form the database, Now i want the generated form to be send as a mail to multiple emails (which was provided by the applicant during the registration. Here is the code for the form Retrieval and its responding i just want this page to be send as a mail to multiple emails like i stated above. Thank you.
<?php
$query = "";
include("includes/connect.php");
?>
<?php
if(isset($_GET['name1'])) {
$sql = "SELECT *FROM intern_form WHERE unique_no='".$_GET['name1']."';";
$row = mysql_fetch_array(mysql_query($sql));
}
?>
<p>The Registrar,</p>
<p><?php echo $row['institution']; ?></p>
<p><?php echo $row['institution_address']; ?></p>
<p align="center"><strong>RE: APPLICATION FOR <?php echo $row['it_duration']; ?> INDUSTRIAL TRAINING:</strong></p>
Dear Sir/Ma,
This is to inform you that the above named student has been accepted for industrial attachment.
I hereby comfirm that we would be in a position to offer Industrial Training in our Directorate(ITeMS).
Please find attached schedule of duty during the attachment.
Thank You.
Yours faithfully,
Signature