0

I used this function to start a form:
echo form_open('email/send');
and after viewing the source I found that form_open returned duplicated index.php :

<form action="http://localhost/ci/index.php/index.php/email/send"
Note:
I tried keeping only this line of code in the page, but still gave me the same result

Edit1:

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

1
  • What do you have set for your base url? Commented Nov 30, 2011 at 19:22

1 Answer 1

5

What is your index_page configuration item set to? If your base_url and index_page configuration items both include "index.php" then I imagine form_open() would duplicate it.

Change your application/config/config.php to:

$config['base_url'] = 'http://localhost/ci/';

//...

$config['index_page'] = 'index.php';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.