Blade Maker Posted November 1, 2010 Posted November 1, 2010 Here is a simple contact us form, one thing I should edit later is to check if the email is valid but I don't have the time to edit this at the moment.. This was a old code I used for an old website, but I modified it to do version 2 of mccodes. Enjoy and please give tips so I can get better, thanks. Edit the email so it sends it to your email. contact_us.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Don't say anything about me using die, as I like to use it for things like this. Thanks for reading and I hope you enjoy, for the critics please hit me with all you have, that is how I learn. Quote
Dominion Posted November 1, 2010 Posted November 1, 2010 i assume the "Contact Us Form" is for outside the game? If so you don't need globals but you do need something else (since you're using $h->endpage(); not sure why i think thats just the ingame footer on all the mcc versions... Quote
ColdBlooded Posted November 1, 2010 Posted November 1, 2010 Greetings blademaker, While this is a good try I really advise you look at this topic Contact Form, All contact forms have too have a captcha due too more people developing and using web bots and spamming up email address, So take a look and maybe you will be able too improve a little :) Quote
Dominion Posted November 1, 2010 Posted November 1, 2010 well in this case the captcha would not really matter as only users can see the page, however if out of the game you could ip lock it to once per computer aswell as the captcha. anyway good link Quote
Dave Posted November 1, 2010 Posted November 1, 2010 well in this case the captcha would not really matter as only users can see the page, however if out of the game you could ip lock it to once per computer aswell as the captcha. anyway good link It's still a huge issue... Bots can automatically login and then perform tasks such as spamming the hell out of this contact us form. Just because you have to login doesn't mean it's bot protected. A scary amount of captcha systems can also be bypassed. Quote
Dominion Posted November 1, 2010 Posted November 1, 2010 True, however if there loggedin you may limit the user to only 5 (or 1 etc) at a time. Quote
Dave Posted November 1, 2010 Posted November 1, 2010 True, however if there loggedin you may limit the user to only 5 (or 1 etc) at a time. That is off course another method to stop spamming (: Set a session or cookie in the users browser specifying what time they sent the last message then make sure it's been x amount of time since they did that.. Relatively simple to write. Quote
Blade Maker Posted November 1, 2010 Author Posted November 1, 2010 Ever here of clearing cookies? Quote
Dave Posted November 1, 2010 Posted November 1, 2010 Ever here of clearing cookies? No never, I have no idea what they are >.> I didn't say its a bullet proof plan, But it would silly people not knowing what there doing.. Cause they would need to re-write the bot to delete the cookie each time. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.