I have a form that is submitting survey results into a mysql db. I would like to make it so that once a client id has been logged, they cannot make another entry.
what would be the best way to go about doing this?
Log their ID along with the post. But, before the post is inserted, query the table to see if that ID exists or not. If it does, allow the post. If not, then echo back a message to the user.
ok, so I have the url variable including the client id: (http://url.com?id=123456&name=whatever) then I insert the id into the database.
How would the syntax look for that?
But, before the post is inserted, query the table to see if that ID exists or not. If it does, allow the post. If not, then echo back a message to the user.