- This topic is empty.
-
AuthorPosts
-
April 5, 2019 at 4:17 am #285977
bjohnson
ParticipantHi All,
I am struggling with a new form I have recently included on my company website. It sends a form with all the details the end user populates; however it’s not posting their email address. We used to have a form where it sent their email address through, so you could reply to their email to acknowledge it. I’m really struggling what I’m missing, so any help would be very much appreciated please.. Many thanks
My code…
<?php
$EmailTo = "[email protected]";
$EmailFrom = "[email protected]";
$Subject = "Website Commission Bids Received";
$headers .= "Content-Type: text/plain; charset=\"UTF-8\"; format=flowed \ r\n";
$Fullname = Trim(stripslashes($_POST['Fullname']));
$Telephone = Trim(stripslashes($_POST['Telephone']));
$Email = Trim(stripslashes($_POST['Email']));
$Address = Trim(stripslashes($_POST['Address']));
$Auctiondate = Trim(stripslashes($_POST['Auctiondate']));$first_lot_no = Trim(stripslashes($_POST['first_lot_no'])); $first_lot_description = Trim(stripslashes($_POST['first_lot_description'])); $first_lot_bid = Trim(stripslashes($_POST['first_lot_bid'])); $second_lot_no = Trim(stripslashes($_POST['second_lot_no'])); $second_lot_description = Trim(stripslashes($_POST['second_lot_description'])); $second_lot_bid = Trim(stripslashes($_POST['second_lot_bid'])); $third_lot_no = Trim(stripslashes($_POST['third_lot_no'])); $third_lot_description = Trim(stripslashes($_POST['third_lot_description'])); $third_lot_bid = Trim(stripslashes($_POST['third_lot_bid'])); $forth_lot_no = Trim(stripslashes($_POST['forth_lot_no'])); $forth_lot_description = Trim(stripslashes($_POST['forth_lot_description'])); $forth_lot_bid = Trim(stripslashes($_POST['forth_lot_bid'])); $fifth_lot_no = Trim(stripslashes($_POST['fifth_lot_no'])); $fifth_lot_description = Trim(stripslashes($_POST['fifth_lot_description'])); $fifth_lot_bid = Trim(stripslashes($_POST['fifth_lot_bid'])); // validation $validationOK=true; if (!$validationOK) { print ""; exit; } // prepare email body text $Body = ""; $Body .= "Full Name: "; $Body .= $Fullname; $Body .= "\n"; $Body .= "Telephone: "; $Body .= $Telephone; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= " \n\r"; $Body .= "Auction Date: "; $Body .= $Auctiondate; $Body .= " \n\r"; $Body .= "First Lot No.: "; $Body .= $first_lot_no; $Body .= "\n"; $Body .= "First Lot Description: "; $Body .= $first_lot_description; $Body .= "\n"; $Body .= "First Lot Bid: "; $Body .= $first_lot_bid; $Body .= " \n\r"; $Body .= "Second Lot No.: "; $Body .= $second_lot_no; $Body .= "\n"; $Body .= "Second Lot Description: "; $Body .= $second_lot_description; $Body .= "\n"; $Body .= "Second Lot Bid: "; $Body .= $second_lot_bid; $Body .= " \n\r"; $Body .= "Third Lot No.: "; $Body .= $third_lot_no; $Body .= "\n"; $Body .= "Third Lot Description: "; $Body .= $third_lot_description; $Body .= "\n"; $Body .= "Third Lot Bid: "; $Body .= $third_lot_bid; $Body .= " \n\r"; $Body .= "Forth Lot No.: "; $Body .= $forth_lot_no; $Body .= "\n"; $Body .= "Forth Lot Description: "; $Body .= $forth_lot_description; $Body .= "\n"; $Body .= "Forth Lot Bid: "; $Body .= $forth_lot_bid; $Body .= " \n\r"; $Body .= "Fifth Lot No.: "; $Body .= $fifth_lot_no; $Body .= "\n"; $Body .= "Fifth Lot Description: "; $Body .= $fifth_lot_description; $Body .= "\n"; $Body .= "Fifth Lot Bid: "; $Body .= $fifth_lot_bid; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: "); // redirect to success page if ($success){ print ""; } else{ print ""; } ?>
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.