CodeIgniter Forums
Interesting URL problem - 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: Interesting URL problem (/showthread.php?tid=40197)



Interesting URL problem - El Forum - 04-01-2011

[eluser]jazzplayermark[/eluser]
I'm completely new to CI. I'm going through the user guide and trying to follow along to understand the structure and I'm having a problem when submitting a form.

my url to the form is: www.tcfoodtaxi.com/form

after I submit it, the generated url is: http://www.tcfoodtaxi.com/www.tcfoodtaxi.com/index.php/form

From config.php
$config['base_url'] = 'www.tcfoodtaxi.com/';

I am using .htaccess to eliminate the need to include 'index.php' in the url.

thanks for any help.
mark


Interesting URL problem - El Forum - 04-01-2011

[eluser]InsiteFX[/eluser]
Try this:
Code:
$config['base_url']  = 'http://www.tcfoodtaxi.com/';

Also your form open shoud be controller/function not the full path to your website.
Code:
echo form_open('email/send');

echo form_submit('mysubmit', 'Submit Post!');

InsiteFX


Interesting URL problem - El Forum - 04-01-2011

[eluser]jazzplayermark[/eluser]
Thanks. That fixed it!