i got some script that emails you after you have filled out a form. Now how would i get this to go to two people, or have two different emails, one for the photographer and one for the person who made the request?
if(!$sql){
echo 'There has been an error creating your quote. Please contact the webmaster.';
} else {
$userid = mysql_insert_id();
$subject = "gelphoto. quick.quote";
$message = "Dear $username,
Thank you for creating a quote. $name_photog has been emailed to notify him of you questions
photographer: $name_photog
job_title: $job_title
location: $location
job_date: $job_date
other_info: $other_info
Thanks
Gel. quick.quote
This is an automated response, please do not reply!";
mail($email_address, $subject, $message, "From: gel.photo<admin@gelphoto.com>\nX-Mailer: PHP/" . phpversion());?>
<? echo "a quote has been sent to you at $email_address<br>
and to $email_photog<br>($name_photog)" ?><?
}
?>