|
Posted by Brian on 04/27/06 14:25
"Geoff Berrow
>>http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=762&lngWId=8
>>
>>Looked nice and simple
>
> But how have you integrated it with your mail script?
I'm using it exactly how's it shown, all I did was add
the code to my from and my from process page
Then on the process page did....
session_start();
$IMGVER_EnteredText = $HTTP_POST_VARS["txtCode"];
$IMGVER_RandomText = $HTTP_SESSION_VARS["IMGVER_RndText"];
if ($IMGVER_EnteredText == $IMGVER_RandomText) {
$body = " the email body";
$to = "<email@domain.com>" ;
$subject = "enquiry from";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
mail($to, $subject, $body, $headers);
}
session_unset();
session_destroy();
Brian
Navigation:
[Reply to this message]
|