Gossamer Forum
Home : Products : DBMan : Discussions :

Locking Out Record Id

Quote Reply
Locking Out Record Id
A few times in the past a reckless user has tried to mess up my database www.ezfindit.com/ezbooks by loging in, adding a record and changing the automatically assigned record ID with a non-numeric combination.

Is there a way to prevent this from happening? (ie: locking out the field or validating the field before it generates the new record)

Quote Reply
Re: Locking Out Record Id In reply to
I believe that if you make this a hidden field that only admin sees than it would help to prevent this from happening as they will never actually see the ID.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Locking Out Record Id In reply to
I don't have db_auto_generate on,(I've modified my forms) so I can't just set field to a "-2". How can I hide it without the form autogenerate function?
Quote Reply
Re: Locking Out Record Id In reply to
I figured it out! I looked up JPDenni's information and fixed it with an if-else loop that only displays the RecID if the admin is logged in.

Thanks for the help.