CodeIgniter Forums
Need help with login - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Need help with login (/showthread.php?tid=20671)



Need help with login - El Forum - 07-17-2009

[eluser]eec999[/eluser]
I have developed a site with codeigniter that requires login. The problem is - the login code works fine with IE, but not firefox, chrome or safari. Has anyone seen this before, and/or know what the fix is?

Thanks




<form action="/profile/login" method="post" name="form1" class="alexpr" id="form1">
<p>
<label>Username:<br />
<br />
&lt;input type="text" name="username" id="ID" /&gt;
<br />
<br />
Password: <br />
<br />
&lt;input type="password" name="password" id="Password:" /&gt;
<br />
&lt;input type="checkbox" name="remember" id="remember me" /&gt;
</label>
<span class="small">remember me</span><font size="2"><br />
</font><br />
&lt;input type="submit" class="login" id="LOGIN_BUTTON" name="LOGIN_BUTTON" value="Login" /&gt;
<br />
<font size="2" face="Arial, Helvetica, sans-serif"><br />
<br />
</font><a href="#" class="small">forgot password?</a><font size="2" face="Arial, Helvetica, sans-serif">
</p>
</font>
&lt;/form&gt;


Need help with login - El Forum - 07-17-2009

[eluser]Đaяк Đaηтє[/eluser]
You need to post more about your applicattion, maybe some code. Maybe you're using some Javascript and this would be the reason because your app, doesn't work.

Post some code...


Need help with login - El Forum - 07-17-2009

[eluser]eec999[/eluser]
see code added..


Need help with login - El Forum - 07-17-2009

[eluser]Đaяк Đaηтє[/eluser]
Everythig looks fine, only id's elements, don't put spaces in id of html elements, try with this:

Code:
&lt;form action="/profile/login" method="post" name="form1" class="alexpr" id="form1"&gt;
    <label>Username:&lt;input type="text" name="username" id="ID" /&gt;&lt;/label>
    <label>Password:&lt;input type="password" name="password" id="Password" /&gt;&lt;/label>
    &lt;input type="checkbox" name="remember" id="remember_me" /&gt;
    <span class="small">remember me</span>
    &lt;input type="submit" class="login" id="LOGIN_BUTTON" name="LOGIN_BUTTON" value="Login" /&gt;
    <font size="2" face="Arial, Helvetica, sans-serif">forgot password?</font>
&lt;/form&gt;



Need help with login - El Forum - 07-17-2009

[eluser]eec999[/eluser]
Thanks, that helped.