Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-24-2007, 10:58 PM   PM User | #1
jasonc310771
Regular Coder

 
Join Date: Mar 2006
Posts: 478
Thanks: 3
Thanked 0 Times in 0 Posts
jasonc310771 can only hope to improve
prevent form from being submitted over and over again?

i have created a forum site for our local community but it turns out that it is possible for people to post a message many times over by clicking back and then re submitting again which i need to prevent.

if anyone has any ideas how i can do this plz let me know as i need to get it back up and running soon as it was a very popular part of our site and do not want to lose the members because of this isue i have now found.

thanks in advance for your help.


oh and Merry Xmas...
jasonc310771 is offline   Reply With Quote
Old 12-25-2007, 01:52 AM   PM User | #2
jlhaslip
Regular Coder

 
Join Date: Feb 2007
Location: Canada
Posts: 924
Thanks: 10
Thanked 56 Times in 55 Posts
jlhaslip is on a distinguished road
One method would be to have the form submit the time using the now() and the receiving script can check to see if a certain amount of time had passed since the submission. Details would be up to you to determine.
jlhaslip is offline   Reply With Quote
Old 12-25-2007, 06:28 AM   PM User | #3
SeeIT Solutions
Regular Coder

 
Join Date: May 2005
Posts: 563
Thanks: 0
Thanked 3 Times in 3 Posts
SeeIT Solutions is on a distinguished road
yeah just set a limit elsewhere as to how often they can post into the database.
__________________
Design Portfolio
SeeIT Solutions is offline   Reply With Quote
Old 12-25-2007, 07:07 AM   PM User | #4
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
If the DB is not very large, then you can call a function to check for some fields to see if there is an entry posted in the same day with same contents by the same user. If not, just insert else do nothing.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:27 PM.


Advertisement
Log in to turn off these ads.