rik72 Posted January 23, 2008 Share Posted January 23, 2008 <?php $firstname = $_REQUEST['firstname'] ; $surname = $_REQUEST['surname'] ; $servicerequired = $_REQUEST['servicerequired'] ; $housenumber = $_REQUEST['housenumber'] ; $streetadress = $_REQUEST['streetaddress'] ; $towncity = $_REQUEST['towncity'] ; $county = $_REQUEST['county'] ; $postcode = $_REQUEST['postcode'] ; $mobilenumber = $_REQUEST['mobilenumber'] ; $homenumber = $_REQUEST['homenumber'] ; $worknumber = $_REQUEST['worknumber'] ; $emailaddress = $_REQUEST['emailaddress'] ; $agentdetails = $_REQUEST['agentdetails'] ; $propertyage = $_REQUEST['propertyage'] ; $propertytype = $_REQUEST['propertytype'] ; $bedrooms = $_REQUEST['bedrooms'] ; $extensions = $_REQUEST['extensions'] ; $heatingtype = $_REQUEST['heatingtype'] ; $inspectiondaytime = $_REQUEST['inspectiondaytime'] ; $notes = $_REQUEST['notes'] ; $to = "rik@nospam.info"; $subject = "EPC/HIP Request Form Submission"; $message = "Service Required: $servicerequired Firstname: $firstname Surname: $surname House Number: $housenumber Street Address: $streetaddress Town/City: $towncity County: $county Postcode: $postcode Mobile Number: $mobilenumber Home Number: $homenumber Work Number: $worknumber Email Address: $emailaddress Agent Details: $agentdetails Property Age: $propertyage Property Type: $propertytype Bedrooms: $bedrooms Extensions: $extensions Heating Type: $heatingtype Inspection Day/Time: $inspectiondaytime Notes: $notes"; $headers = "From: $emailaddress"; mail($to, $subject, $message, $headers); ?> <h1>Thank you</h1> <p>Thank you for your contact form submission, someone will be in touch shortly.</p> I can't see a single issue in the above code, but i'm sure there is one as i'm getting server misconfiguration error 500. Any help? appreciated thanks Rik Quote Link to comment https://forums.phpfreaks.com/topic/87292-simple-form-issues/ Share on other sites More sharing options...
Ken2k7 Posted January 23, 2008 Share Posted January 23, 2008 I don't think a 500 error is of the problem with the PHP script. Quote Link to comment https://forums.phpfreaks.com/topic/87292-simple-form-issues/#findComment-446493 Share on other sites More sharing options...
rik72 Posted January 23, 2008 Author Share Posted January 23, 2008 Hi cheers, looked further into it and it was dreamweaver uploading the file with the wrong CHMOD, fixed now. Just a further question; How can i make it send this email in HTML so i can include bold tags and an image? Cheers Rik Quote Link to comment https://forums.phpfreaks.com/topic/87292-simple-form-issues/#findComment-447189 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.