Welcome Guest, Not a member yet? Register   Sign In
Confusing on the workflow of codeIgniter...
#1

[eluser]ted wong[/eluser]
I have a page, called login_page, and it will show show_login_page.
Then, when the user click the login button, I got a submit_login_page, if it is not success, I load back the
show_login_page, and display back the error to the user.

So, my question is in the user of view, they may think login_page, and show_login_page is different things.....
But when I try to use redirect to the page, it doesn't show back the error msg. So, can I back to the login_page on the path,
but still can show the error msg I want??

Current Situation:

login_page -> show_login_page ---login button is clicked ---> submit_login_page ---error---> show_login_page
url:
index.php/login_page --> index.php/login_page --> index.php/submit_login_page ---> index.php/submit_login_page

Want Situation:
login_page -> show_login_page ---login button is clicked ---> submit_login_page ---error---> show_login_page

url:
index.php/login_page --> index.php/login_page --> index.php/submit_login_page ---> index.php/login_page
#2

[eluser]jblack199[/eluser]
http://net.tutsplus.com/articles/news/co...y-6-login/




Theme © iAndrew 2016 - Forum software by © MyBB