• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
form_open() url problem

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

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

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

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

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

-tg

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.