Need Simple PHP to Email "Schedule" Page

walkthewalk

New Member
I need a to make an online scheduling page for a legal services firm's website, similar to this page:
http://www.benchmark...-scheduling.asp

I believe this is a php to email script. It has to have the ability to attach a file. This should not be very difficult.

Please contact me or post here if you can help me out and we will work out a price. I can pay via paypal.

Thanks
 

jemountfort

New Member
<?php
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "Email you want to receive it";
$email_subject = "Subject Variable";

// What ever form variables you had / want
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];

$email_message = "Form details below.\n\n";

function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}

// compile the message, obviously the more variables ad them on the end etc
$email_message .= "Name: ".clean_string($name)."\n";
$email_message .= "Email: ".clean_string($email)."\n";
$email_message .= "Comments: ".clean_string($message)."\n";


// create email headers
$headers = 'From: '.$email."\r\n".
'Reply-To: '.$email."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>

That will get you started , file upload isnt too difficult some one else can help you there
 
Top