quote:
* Send auto email after submitting to let user know email has been recieved (requires database??)
Doesn't require any database, just do a second mail() with the message of your choice and directed to the email inputted in the contact form.
quote:
* Let a user submit only 5 times a day to reduce spam (database or cookies??)
I would not reccommend cookies, I would use the IP and yes, via a database. Someone more expert at php/mysql will be able to provide you with the full code
quote:
* Only click submit once to reduce spam (php please, no silly javascript codes)
That can't be done with PHP, because it doesn't run on the client. You
have to do it with javascript. However if the above point is working, he won't be able to send the e-mail more than 5 times.
quote:
* Send it to both me and someone else (simple little code like:
Yeah, almost that
code:
<?php
$headers = "From: Mysite.Com <webmaster@mysite.com>\r\n";
$headers .= "Reply-To: webmaster@mysite.com\r\n";
$send_to = "someone@here.com, someone_else@there.com, another@wherever.com";
mail($send_to, "My Subject", "This is my message", $headers);
?>
quote:
Originally posted by x4nder
well what ever you do try and stay away from cookies. they can be easily deleted. its how loads of sites block people. by ip and cookies.
fools........
Excuse me... are there many other ways that those fools don't know about? cookies and IP are pretty much everything you can use to block users...