like if the visitor from the same IP address cannot send more than 2 email…and also how to “force” the visitor the enter value? i dun wan a empty field to be send to me…
@NevermoreFeb 29.2004 — #I don't think you really need to make sure only 1 message per IP, just make it more difficult for people to send lots:
Put this on the line before the mail() function: [code=php] if($msg="") die("Please fill in the message field");//Stops people submitting with no text sleep(10);//Waits 10 secs to stop abuse [/code]
@The_CheatFeb 29.2004 — #[i]Originally posted by cijori [/i]
[B]I don't think you really need to make sure only 1 message per IP, just make it more difficult for people to send lots:
Put this on the line before the mail() function:
[code=php] if($msg="") die("Please fill in the message field");//Stops people submitting with no text sleep(10);//Waits 10 secs to stop abuse [/code] [/B][/QUOTE] that is not going to stop people from submitted a message with no text,
if you look closely, msg already is going to contain $msg = "Below is the result of your feedback form. It was submitted on $date at $time.nn";