Possibly a Unicode or language problem? Sent from my Windows Phone ________________________________ From: John C<mailto:[email protected]> Sent: 19/03/2014 8:16 p.m. To: NZ Borland Developers Group - Delphi List<mailto:[email protected]> Subject: [DUG] Contact form page
Hi all I have this website with a contact page (in PHP & html) where any person can submit a request with their contact details which is emails to me after clicking a submit button. All works fine, however. So now and then I receive an email from this website/page but details don't seem being filled in at "page level" but in another way. This as the page does a submit validation check and the submitted phone number is e.g. " LbXwjLfDDTFkIuBkPP " something my validator doesn't allow for. Also other details are like: Name: Bjmpynut Organisation: ahTKXyxtYnCdo Position: Bjmpynut Phone: LbXwjLfDDTFkIuBkPP Email: [email protected] All looks very suspicious. Any clues how this could happen at all and how to prevent this? The webpage in question is at http://www.relacs.co.nz/ContactUs.php The email creator resides in the post process of the page like: if($_POST['Submit']=="Submit") { $Name = $_POST['InputName']; $Email = $_POST['InputEmail']; $Phone =$_POST['InputPhone']; $Company = $_POST['InputCompany']; $Position = $_POST['InputPosition']; $Subject = $_POST['Subject']; $Comment = $_POST['InputComment']; $body = "Name: $Name\n\n"; $body.= "Company: $Company\n\n"; $body.= "Position: $Position\n\n"; $body.= "Phone: $Phone\n\n"; $body.= "Email: $Email\n\n"; $body.= "Subject: $Subject\n\n"; $body.= "Comment: $Comment"; $Receiver = "[email protected]" ; $send = mail($Receiver, "Feedback website - RELACS", $body, "From: $Email"); $Msg = "Thank you $Name for your feedback. We will get back to you ASAP"; } Thanks for any help and/or suggestions. John Ch
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
