Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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...

Posted

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 :)

Posted

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

Posted
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.

Posted
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.

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...