Jump to content

likedvm

New Members
  • Posts

    1
  • Joined

  • Last visited

likedvm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys, I'm using a PHP form for my website & I can't get it to send the email correctly, all it send me is the first and last name, but none of the other boxes, any help? Also how can I secure it? This is the PHP file: <!DOCTYPE html> <html> <body> <?php $fname = $_POST['fname']; $lname = $_POST['lname']; $email = $_POST['email']; $paddress = $_POST['paddress']; $cnumber = $_POST['cnumber']; $bedrooms = $_POST['bedrooms']; $furnished = $_POST['furnished']; $unfurnished = $_POST['unfurnished']; $partfurnished = $_POST['partfurnished']; $townwork = $_POST['townwork']; $distancework = $_POST['distancework']; $when = $_POST['when']; $maximum = $_POST['maximum']; $additional = $_POST['additional']; //Sending Email to form owner $header = "From: $email\n" . "Reply-To: $email\n"; $subject = "Property locator"; $email_to = "someone@domain.com"; $message = "Name: $fname . $lname\n"; "Email: $email\n"; "Postal Address: $paddress\n"; "Contact Number: $cnumber\n"; "Number of Bedrooms: $bedrooms\n"; "Furnished, Unfurnished or Part Furnished: $furnished . $unfurnished . $partfurnished\n"; "Which town will you be working in?: $townwork\n"; "Preferred distance from property to work (miles): $distancework\n"; "When do you need the accomodation?: $when\n"; "Maximum rental per month(£): $maximum\n"; . "Additional information: $additional\n"; mail($email_to, $subject ,$message ,$header ) ; ?> <h1>Thank You for Your Submission</h1> <p><a href="http://www.">Click here to go back</a></p> </body> </html>
×
×
  • 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.