Welcome Guest, Not a member yet? Register   Sign In
Interesting URL problem
#1

[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...x.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
#2

[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
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB