Jump to content

Form Editing


Darkness
 Share

Recommended Posts

Hey.There are people on my site who are using page editing to cheat. On my site, I use a this.disabled function to disable a button when clicked, so people can not click it multiple times. However, people are editing the source, and taking out the disabled part. Is there a way I can disable this or track it?I'm guessing that this can be achieved via Javascript, HTML, PHP, or a combination of them, however I am not sure.Thanks.

Link to comment
Share on other sites

Well, here's an example of the form.

<form action='pagehere.php' method='POST'><input type='hidden' name='Submit' value='1'>Input stuff here.<input type='submit' value='Continue' onclick="this.disabled='true'; this.value='Please Wait...'; this.form.submit();\"></form>

The hidden input field is there because disabled submit fields can not have names.Basically, the form goes to a certain page, of course. That page adds data to the MySQL database. However, people can use source editing to change it to...

<input type='submit' value='Submit'>

That way, they can keep clicking the button rapidly, and the data will be added each time; which allows them to spam.

Link to comment
Share on other sites

How about if they submit data you not let them go back to the page? What exactly is the issue with this though? If they go to a page through they form, it shouldn't matter if they click it that much, and even if they do, make it send you an email if a user posts more than 1 thing within a few seconds of each other, and also flag them so they can't do it... It's not that hard a process(well, then again, I am a relatively good PHP user... so i guess whats not so hard for me may be for others...). I'm sure we could all help you much more if we knew what else was going on. Is there any more Javascript involved? or what?

Link to comment
Share on other sites

Justsomeguy's idea will work all the time (unless they write a script to click, delete cookies, click, delete cookies, etc).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...