Hello everyone i have a small PHP contact script that I use for sites and am now starting to see an issue with it. The scrip work and gets information sent by the user to the designated target, however, it appears that the clients keep getting multiple blank forms a day from the script. Im sure that I just wrote these poorly or something so any advice would be greatly appreciated here are my scripts:
[php]<?php
$to = ā*************@gmail.comā ;
$from = $_REQUEST[ānameā] ;
$email = $_REQUEST[āemailā] ;
$tel = $_REQUEST[ātelā] ;
$message = $_REQUEST[āmessageā] ;
$headers = āFrom: $fromā;
$subject = āOnline Contact Formā;
$fields = array();
$fields{ānameā} = āCustomer Nameā;
$fields{āemailā} = āEmail Addressā;
$fields{ātelā} = āTelephone Numberā;
$fields{āmessageā} = āMessageā;
$body = āWe have received the following information:\n\nā; foreach($fields as $a => $b)
{ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }
$send = mail($to, $subject, $body, $headers);
header( āLocation: http://www.*************.comā );
?> [/php]
[php]
Contact
NameĀ :
EmailĀ :
TelephoneĀ :
MessageĀ :
Keep In Touch:
<ul>
<li> </li>
<li class = "white">Tel:</li>
<li class = "tan">803-464-5779</li>
<li> </li>
<li> </li>
<li class = "white">Email:</li>
<li class = "tan">[email protected]</li>
</ul>
<ul id="sm-links">
<li><a href="http://www.facebook.com/pages/Mello-Music/335532303142093?ref=ts&fref=ts" class="facebook" target = "_blank" >Facebook</a></li>
</ul>
</div>
</div>
<div class="bottom-divider"></div>
</div>[/php]