|
|
#1 |
|
New Member
![]() Join Date: Mar 2010
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
Bronze Member
![]() Join Date: Mar 2010
Location: New Zealand
Posts: 55
|
<?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
__________________
New Zealand Web Design and Software Design - Media Interactive Ltd |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Mar 2010
Posts: 2
|
I dont need a comment form. I need something that has alot more flields and some checkboxes and file upload.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|