php - url issues with codeignitor -
i have illustration @ following url, sends user basic form.
the code form following;
<?php echo validation_errors(); ?> <?php echo form_open('form'); ?> <h5>username</h5> <input type="text" name="username" value="" size="50" /> <div><input type="submit" value="submit" /></div> </form>
if understand correctly, 1 time user presses "submit", should go controller named "form". not work expected.
i want submit index.php/form
, , instead goes /index.php/index.php/form
feel free test out website @ url above , see issue yourself.
i looked @ source code , noticed this:
<form action="http://helios.hud.ac.uk/u0862025/codeigniter/index.php/index.php/form" method="post" accept-charset="utf-8">
which displays 2 "index.php"s. means have "index.php" set in base of operations url , index page configuration. should remove "index.php" 1 of sources, preferably base_url.
php codeigniter
No comments:
Post a Comment