close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to prevent multiple form submissions

Thread began 12/29/2012 4:19 pm by david331670 | Last modified 1/16/2013 8:21 am by Jason Byrnes | 2977 views | 3 replies |

david331670

How to prevent multiple form submissions

GRRRR!!
I have 1 pain in the butt user who continuously fills a form with garbage.
I am constantly cleaning the user from my data base.
How can I prevent multiple form submissions? Will a cookie work to prevent user from multiple form submissions for longer than a session?
If not cookies, php code?

Can I authenticate the email listed in the form, not just the structure?

I have looked online but I cant make sense of the code and where to place it.
My pages wont display as there are errors when code is inserted.
Thanks
David B

Sign in to reply to this post

Jason ByrnesWebAssist

does your form save the information to a database?

if so, add a column to the table to store the users IP address. in the insert behavior, bind the new IP column to the REMOTE_ADDR binding from the server collection.

once you know the IP address of the problem user, you can ban them using PHP on your site, seer the following page for details:
how-to-block-ip-addresses-with-php/

Sign in to reply to this post

david331670

username

Thanks for that, got the url in my data base.
How do I get and store the username of the user (user not logged in)
I could also store this on my data base in conjunction with the ip address.
Thanks
David

Sign in to reply to this post

Jason ByrnesWebAssist

  How do I get and store the username of the user (user not logged in)  



is the username one of the fields in the form?

if so you can get the username from the form. but you are relying on the person filling in the form to enter the correct username.

if it is not a part of the form, then there is not a way to get the username if they are not logged in.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...