![]() |
the URL is showing twice!! really simple I think - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: the URL is showing twice!! really simple I think (/showthread.php?tid=42516) |
the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]xcodesane[/eluser] Hello guys, first post here, so sorry for not being too familiar with the forum. Ok so basically used the form loader: Code: class WebLogin extends CI_Controller { and then in the displaydetails/displayResults/ controller, I wrote simple echo: Code: class DisplayDetails extends CI_Controller { then when I submit the login form, in the address bar the URL shows the following: http://domainname.com/index.php/www.domainname.com/index.php/displaydetails/displayResults as you can see twice the domain address is mentioned...why so? this is why I can't progress.. Thanks in advance. K.S.A the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]xcodesane[/eluser] 18 views and no reply? is this a serious problem? I thought it would be common setting error ![]() the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]cideveloper[/eluser] what is your base_url and uri_protocol in config.php? the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]xcodesane[/eluser] $config['base_url'] = 'www.f2bksa.com'; $config['uri_protocol'] = 'AUTO'; .... the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]WanWizard[/eluser] Impatient are we? Think we're all idling around until someone asks a question? form_open() uses the site_url (a combination of 'base_url' and 'index_page') set in the config to construct the action, so I suggest you look at what you have configured there... the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]xcodesane[/eluser] @WanWizard....no not impatient otherwise programming won't be the right thing for me to do ![]() rather excited to know the relation between view counter and response counter... ![]() the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]bhumes[/eluser] I think you need to add a trailing slash to your base_url and you need to remove the trailing slash from your form_open argument. the URL is showing twice!! really simple I think - El Forum - 06-09-2011 [eluser]Atharva[/eluser] Try Code: $config['base_url'] = 'http://www.f2bksa.com'; the URL is showing twice!! really simple I think - El Forum - 06-10-2011 [eluser]xcodesane[/eluser] Hey guys, Thanks all for the replies...it is really nice to experience the community's support first hand. I edited the config.php base url to null so Code: $config['base_url'] = ''; catch ya later ![]() K.S.A |