'message' 'comment' fields into something else to stop spammers?
Posted 26 May 2006 - 09:00 AM
change the 'message' or 'comment' fields to an uncommon name.
So I tried this technique and all it did was keep in typed message in my form from showing in my email. For instance here is some simple code I tried. My 'message' field in the form area only looks like this when it is working. <textarea name="message" </textarea> and here is some php code when it works.
$headers .= "From: \" <".$from_address.">\n";
$from_address = "myemailaddress@myemailaddress";
$message = $_REQUEST['message'];
mail("myemailaddressagain", "Sent From Form", $message, $headers);
So I changed all these message fields to 'post it' . Including this field.
$message = $_REQUEST['message']; into
$postit = $_REQUEST['postit'];
Like I said, all I get is an email without any message from the form when I change these fields. Can anyone explain this to me please? Thanks! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
Posted 26 May 2006 - 09:13 AM
Posted 26 May 2006 - 11:20 AM
You need to change this $_REQUEST['message'] to the same name as the form.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users