problem in redirect method |
[eluser]Jason Stanley[/eluser]
Click a link. What is the url in your address bar?
[eluser]asmaa kamal[/eluser]
what link you mean ? sorry for bad english the link of this page: http://ellislab.com/forums/viewthread/209640/ the link when i use my login code :: when i press loin the lonk is : http://localhost/t/main/login sorry for Lack of understanding english
[eluser]Jason Stanley[/eluser]
Change Code: <?php echo form_open(base_url() . 'main/login')?> To Code: <?php echo form_open(site_url('main/login')?> base_url is mainly used for linking files which are in your route. site_url is used to access controllers and the such as this takes into account the index.php.
[eluser]asmaa kamal[/eluser]
thanks jason it works but there are another problems i want if email and password is valid>> it redirect to dashboard page and if not valid password it give me validation message that tell me that the password is wrong this logic doesnt occur when i put valid email and password ,it get the link :http://localhost/t/index.php/main/login and when i put non valid password it doesnt give me validation message that tell me that " password not valid" thanks for help |
Welcome Guest, Not a member yet? Register Sign In |