Welcome Guest, Not a member yet? Register   Sign In
Problems with URL-s
#1

[eluser]staar2[/eluser]
I use this http://ellislab.com/codeigniter/user-gui...ation.html validation example and when i click the submit button then it goes to this URL http://localhost/index.php/index.php/form. Wrong something with php settings ?
#2

[eluser]tonanbarbarian[/eluser]
I would suggest the problem is use the action of the form tag in your view
post your view and controller files and i am sure someone will be able to point you in the right direction
#3

[eluser]staar2[/eluser]
Code is same which is in this page http://ellislab.com/codeigniter/user-gui...ation.html

Form tag
<form action="index.php/form" method="post">
#4

[eluser]tonanbarbarian[/eluser]
just use
Code:
<form action="/form" method="post">
or better yet
Code:
<form action="<?php echo site_url('form'); ?>" method="post">
but this requires the url helper be loaded
#5

[eluser]staar2[/eluser]
[quote author="tonanbarbarian" date="1197342173"]just use
Code:
<form action="/form" method="post">
or better yet
Code:
<form action="<?php echo site_url('form'); ?>" method="post">
but this requires the url helper be loaded[/quote]
Huh im really stuck with this. Ok here are my results:
1. Used /form went to address http://localhost/form
2. Used <form action="<?php echo site_url('form'); ?>" method="post"> get http://localhost/index.php/index.php/form

I don't no what's wrong with URLS. :roll:
#6

[eluser]tonanbarbarian[/eluser]
Your config options must be wrong
my guess would be you have something like the following
application/config/config.php
Code:
$config['base_url'] = "http://localhost/index.php";
$config['index_page'] = "index.php";

when it should be
Code:
$config['base_url'] = "http://localhost/";
$config['index_page'] = "index.php";
#7

[eluser]staar2[/eluser]
Works! Ty for helping !




Theme © iAndrew 2016 - Forum software by © MyBB