Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Best Practice for this situation?

    Hi everybody,

    I did a form that people fill out various informations and once they submit, that information is saved in my database.

    My question here is what is the best practice to avoid bad intentions from users? Like i don't want a user to submit their info then go back and then submit again and again and again causing it to fill my Database with Junk.

    One of the possibilities i was thinking was to save in a file the IP and Date of insert and check if that IP already submitted on that day, he couldn't go and submit again. What do you think? Is it a good practice or not really?

    Hope to hear your thoughts on this.

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,147
    Thanks
    2
    Thanked 333 Times in 325 Posts
    Here is a recent thread on this - http://www.codingforums.com/showthread.php?t=105371
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •