Welcome Guest, Not a member yet? Register   Sign In
Index.php is showing up in the 'form success' page.
#1

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

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

[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;
#4

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

[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.




Theme © iAndrew 2016 - Forum software by © MyBB