Can i make LIGHTBOX as a tool for my visitor to collect data

hi guys i have a question?
is it possbile if someone enters my website and a lightbox will automatically shown and they will fill the particular data that the lightbox is asking for example (Name,Email Address,phone)
and once they submitted the data the lightbox will allow them to enter that particular page.
if the information is not filled lightbox will not allowed them to go to the page.

next thing is the data that they will fill will be automatically registered to my customized database.

and the lightbox will be shown once every viewers. for example
i enter the home page and a lightbox will show. then i fill it up and access to all page.
then the condition is if i press the home button again lightbox must not show again.

i know its kinda tough but if it is possible it will be more advance.
help me out guys. and kindly redirect me to the exact Codings.

thank you.
regards.
jerone.