I am working on a registration page in CodeIgniter. The problem is that my message data does not go through . The following code always produces "fail":
class Signup extends CI_Controller {
function index()
{
if ($this->input->post())
{
echo 'success';
}
else
{
echo 'fail';
echo form_open('signup');
echo form_input('username', 'Username');
echo form_input('email_address', 'Email address');
echo form_submit('submit', 'Create Acccount');
echo form_close();
}
}
}
What could be the problem?
To make it even more interesting, the form works fine on my localhost. This is when on a remote server when it fails.
Update 1: As requested, this is what the server outputs: (I closed the URL, I did not open it)
<form accept-charset="utf-8" method="post" action="http://www.url.com/signup">
<input type="text" value="Username" name="username">
<input type="text" value="Email address" name="email_address">
<input type="submit" value="Create Account" name="submit">
</form>
2: : (cmd R F5) . , , URL- ?
3: , 301. ( ). , . -, , post() false.
, - , 301'd?
4:. CodeIgniter, base_url http://www.url.com http://url.com
!:)