CodeIgniter Forums
form_open() url problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: form_open() url problem (/thread-36375.html)



form_open() url problem - El Forum - 11-30-2010

[eluser]sohei[/eluser]
Hi everybody!
I have a problem with my form, I open it with "form_open('email/send')" and he redirect me on "www.example.com/ci/index.php/index.php/email/send. Yes, with two "index.php" directory Sad. Anyone know why?

Code:
<?php echo form_open('email/send') ;?>
//inputs
<?php echo form_submit('submit','Submit'); ?>
<?php echo form_close() ;?>

Thanks,
sohei


form_open() url problem - El Forum - 11-30-2010

[eluser]umefarooq[/eluser]
hi have you change base url in config file, file is at application>config>config.php


form_open() url problem - El Forum - 11-30-2010

[eluser]sohei[/eluser]
Hi!
No i have not. I have to?

Code:
$config['base_url']    = "http://localhost/ci/index.php/";



form_open() url problem - El Forum - 11-30-2010

[eluser]techgnome[/eluser]
Yes.... take the index.php off of the base url... it shouldn't be there.

-tg


form_open() url problem - El Forum - 11-30-2010

[eluser]sohei[/eluser]
It works! Thanks Smile)