You are here: Re: Form Validatioin « All PHP « IT news, forums, messages
Re: Form Validatioin

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация