CodeIgniter Forums

Full Version: Index.php is showing up in the 'form success' page.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]drpepper[/eluser]
Im very knew to coding and im trying to make some sense of this.
Ive configured the .htaccess to hide the index.php from the url. but when i submit my form at

site.com/register the the url turns in to site.com/index.php/register

any way to fix this?

my .htaccess file is in the public_html folder. my views file structure is

views
-includes
--header.php
--footer.php

-css
--default.css

-register
--register.php
--register_success.php

El Forum

[eluser]n0xie[/eluser]
What does the form look like?

El Forum

[eluser]drpepper[/eluser]
[quote author="n0xie" date="1245360667"]What does the form look like?[/quote]

its pretty much the one from the example exept for a few modifications

Code:
<?php echo form_open('/register'); ?>

<h5>Username</h5>
&lt;input type="text" name="username" value="&lt;?php echo set_value('username'); ?&gt;" size="50" /&gt; &lt;?php echo form_error('username'); ?&gt;

<h5>Password</h5>
&lt;input type="text" name="password" value="&lt;?php echo set_value('password'); ?&gt;" size="50" /&gt; &lt;?php echo form_error('password'); ?&gt;

<h5>Password Confirm</h5>
&lt;input type="text" name="passconf" value="&lt;?php echo set_value('passconf'); ?&gt;" size="50" /&gt; &lt;?php echo form_error('passconf'); ?&gt;

<h5>Email Address</h5>
&lt;input type="text" name="email" value="&lt;?php echo set_value('email'); ?&gt;" size="50" /&gt; &lt;?php echo form_error('email'); ?&gt;

<div>&lt;input type="submit" value="Submit" /&gt;&lt;/div>

&lt;/form&gt;

El Forum

[eluser]n0xie[/eluser]
Did you remove the index.php from your config file as well?
Code:
$config['index_page'] = "";

El Forum

[eluser]drpepper[/eluser]
[quote author="n0xie" date="1245360960"]Did you remove the index.php from your config file as well?
Code:
$config['index_page'] = "";
[/quote]

yes that was it. thanks you!
and please excuse my noob(ness?).

thanks again.