Duplicate entry

User 2344864 Photo


Registered User
5 posts

Made a sign up form with persons last name using checkboxs.
Is their a way using php to check and make sure that they do not sign up twice ?
Thanks
Jack
User 187934 Photo


Senior Advisor
20,196 posts
Online Now

Hi Jack,
Yes there is. A little mysql database to keep track and php hide the form if their name is in the database.
This example should give you the needed info. I'm checking for ip address but you should be able to tweak it for a submitted name.
Vote Please
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2344864 Photo


Registered User
5 posts

Eric,
Thanks for the prompt reply, the mysql database works perfect.
The forms I have been using are saving as csv files in your storage folder.
Is their a way to insert php into one of your files that checks the csv file for duplicates ?

Thanks again
Jack Tindale
User 187934 Photo


Senior Advisor
20,196 posts
Online Now

This might help you out.
http://webdevrefinery.com/forums/topic/ … using-php/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.