Re: query string passing woes........ help... please....
- From: "rcoan@xxxxxxxxxxxxxxxxxx" <rcoan@xxxxxxxxxxxxxxxxxx>
- Date: 28 Feb 2007 13:25:12 -0800
I assume you rename the contact.html to contactform.php
When you assume you really make an ass out of me!! haha!!! Thank you
sooooooooo much, everything works now!!!! Now I just have to work on
the security aspect of it!!
I can't believe I fiddled with this for two days and all I had to do
was change .html to .php jeeezzzz!!!! I take back everything I said
before about feeling stupid.. NOW I reaalllyyy feeelll retarded!!!
dee-de-deeeee
Ok, now on to security measures.... Could someone explain to me what
this code does, how it secures the emails and where in my code I
should implement it?
$emailInput = array($to, $from, $cc, $bcc, $subject, $message);
$injections = array('to', 'from', 'cc', 'bcc');
foreach ($emailInput as $input)
{
foreach ($injections as $injection)
{
$input = preg_replace("/n?" . $injection . "\s*?:.*?\n/i", '',
$input);
}
}
.
- Follow-Ups:
- Re: query string passing woes........ help... please....
- From: Steve
- Re: query string passing woes........ help... please....
- From: shimmyshack
- Re: query string passing woes........ help... please....
- From: J.O. Aho
- Re: query string passing woes........ help... please....
- References:
- query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- Re: query string passing woes........ help... please....
- From: shimmyshack
- Re: query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- Re: query string passing woes........ help... please....
- From: Steve
- Re: query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- Re: query string passing woes........ help... please....
- From: Steve
- Re: query string passing woes........ help... please....
- From: J.O. Aho
- Re: query string passing woes........ help... please....
- From: Steve
- Re: query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- Re: query string passing woes........ help... please....
- From: J.O. Aho
- Re: query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- Re: query string passing woes........ help... please....
- From: J.O. Aho
- query string passing woes........ help... please....
- Prev by Date: Re: query string passing woes........ help... please....
- Next by Date: Re: query string passing woes........ help... please....
- Previous by thread: Re: query string passing woes........ help... please....
- Next by thread: Re: query string passing woes........ help... please....
- Index(es):
Relevant Pages
|
Loading