<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0mm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0mm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas}
span.EmailStyle17
        {font-family:"Arial","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal}
span.PlainTextChar
        {font-family:Consolas}
.MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-NZ" link="blue" vlink="purple">
<div>
<div style="font-size:11pt; font-family:Calibri,sans-serif">Possibly a Unicode or language problem?<br>
<br>
Sent from my Windows Phone</div>
</div>
<div dir="ltr">
<hr>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">From:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif"><a href="mailto:jc@sunshinesoftware.co.nz">John C</a></span><br>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">Sent:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif">ý19/ý03/ý2014 8:16 p.m.</span><br>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">To:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif"><a href="mailto:delphi@delphi.org.nz">NZ Borland Developers Group - Delphi List</a></span><br>
<span style="font-size:11pt; font-family:Calibri,sans-serif; font-weight:bold">Subject:
</span><span style="font-size:11pt; font-family:Calibri,sans-serif">[DUG] Contact form page</span><br>
<br>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">Hi all</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">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.</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">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. "</span> LbXwjLfDDTFkIuBkPP<span style="font-family:"Arial","sans-serif"; color:blue"> " something my validator doesn't allow for.
</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue">Also other details are like:</span></p>
<p class="MsoPlainText"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue">Name:
</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D">Bjmpynut</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue"></span></p>
<p class="MsoPlainText"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue">Organisation:
</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D">ahTKXyxtYnCdo</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue"></span></p>
<p class="MsoPlainText"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue">Position:
</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D">Bjmpynut</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue"></span></p>
<p class="MsoPlainText"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue">Phone:
</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D">LbXwjLfDDTFkIuBkPP</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue"></span></p>
<p class="MsoPlainText"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue">Email:
</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D">gipnpmhk@uohrokgr.com</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">All looks very suspicious. Any clues how this could happen at all and how to prevent this?</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">The webpage in question is at
<a href="http://www.relacs.co.nz/ContactUs.php">http://www.relacs.co.nz/ContactUs.php</a></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">The email creator resides in the post process of the page like:</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> if($_POST['Submit']=="Submit")</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> {</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Name = $_POST['InputName'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Email = $_POST['InputEmail'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Phone =$_POST['InputPhone'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Company = $_POST['InputCompany'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Position = $_POST['InputPosition'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Subject = $_POST['Subject'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Comment = $_POST['InputComment'];</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> </span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body = "Name: $Name\n\n";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body.= "Company: $Company\n\n";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body.= "Position: $Position\n\n";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body.= "Phone: $Phone\n\n";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body.= "Email: $Email\n\n";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body.= "Subject: $Subject\n\n";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $body.= "Comment: $Comment";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> </span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Receiver = "info@relacs.co.nz" ;</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $send = mail($Receiver, "Feedback website - RELACS", $body, "From: $Email");</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> $Msg = "Thank you $Name for your feedback. We will get back to you ASAP";</span></p>
<p class="MsoNormal"><span style="font-size:8.0pt; font-family:"Arial","sans-serif"; color:#0D0D0D"> }</span><span style="font-family:"Arial","sans-serif"; color:blue"></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">Thanks for any help and/or suggestions.</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue"> </span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:blue">John Ch</span></p>
</div>
</div>
</body>
</html>