Require form submitter to register before submit

crixie 05 Jan, 2010
I thought I could set my forms to "registered" but that just made them invisible to the public. I have 23 forms on my site which is open to the public (not registered). However, I would like anyone filling out a form to register first before submitting form, how do I accomplish this?
GreyHead 05 Jan, 2010
Hi crixie,

Check the surrent user id at the beginning of the form html and redirect (or show a 'please register' message) if the id is '0'. Search here for 'getuser' for many code examples.

This topic is locked and no more replies can be posted.