Jump to content

Simple form issues


rik72

Recommended Posts

<?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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.