Hi,
I have a page that contains a form.
I want to allow all users to view this form, but on submission of the form, if the user is not logged in - I want to redirect him to the login page. After the user logs in, I want to continue the original form submission.
For example in this page :http://www.yiiframew...dfasdf#comments When the user clicks on "submit" he will be redirected to the login page and after login his comment will be submitted has a logged in user.
How should I do that?
Thanks!
I have a page that contains a form.
I want to allow all users to view this form, but on submission of the form, if the user is not logged in - I want to redirect him to the login page. After the user logs in, I want to continue the original form submission.
For example in this page :http://www.yiiframew...dfasdf#comments When the user clicks on "submit" he will be redirected to the login page and after login his comment will be submitted has a logged in user.
How should I do that?
Thanks!