Hi - thanks for the reply.
After spending the past hour trying to work it out, still no luck 🙁
This is the code I have - can you please tell me where Im going wrong?
Firstly;
<?php
mysql_select_db($database_conn_emx, $conn_emx);
$query_Recordset1 = "SELECT * FROM pilots";
$Recordset1 = mysql_query($query_Recordset1, $conn_emx) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
Then, the email script;
<?php
$to = $Recordset1['email'];
$subject = $sub;
$message = $msg;
$headers ='From: web@<my url>.com';
mail($to, $subject, $message, $headers);
?>
The $sub and $msg represent the form fields from the previous page.
Thanks again,
Daryl