Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-24-2007, 12:45 AM #1
- Join Date
- Jul 2006
- Thanked 0 Times in 0 Posts
Best Practice for this situation?
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.
01-24-2007, 01:05 AM #2
- Join Date
- Oct 2006
- Denver, Colorado USA
- Thanked 340 Times in 332 Posts
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.