HTML Login => Coding Issues
3 posters
Page 1 of 1
HTML Login => Coding Issues
Hello,
I'm creating a really nice login page, but I can't seem to get it to work. When I hit the login button, it redirects me to my actual forum login page. Here is a snippet of the code, since I can't post the whole thing (multiple posts).
I'm not understanding what I'm doing wrong. I'm supposed to use method="post" and not "get". I know that. I'm almost positive I have the form action attribute correct. Any text that I put in, and I press Log In, it basically redirects me to /login and does nothing. Anybody got any ideas here?
Here's a link to the page if you need it: http://imtv.forumotion.com/h51-login-mod
I'm creating a really nice login page, but I can't seem to get it to work. When I hit the login button, it redirects me to my actual forum login page. Here is a snippet of the code, since I can't post the whole thing (multiple posts).
- Code:
<form id="login" _lpchecked="1" form action="/login.forum" method="post">
<h1>Log In</h1>
<fieldset id="inputs">
<input type="text" type="text" placeholder="Username" autofocus="" required="">
<input type="password" type="password" placeholder="Password" required="">
</fieldset>
<fieldset id="actions">
<input type="submit" id="submit" value="Log in" class="mainoption">
<a href="">Forgot your password?</a><a href="">Register</a>
</fieldset>
<a href="http/www.red-team-design.com/slick-login-form-with-html5-css3" id="back">Back to article...</a>
</form>
</body></html>
</frame>
I'm not understanding what I'm doing wrong. I'm supposed to use method="post" and not "get". I know that. I'm almost positive I have the form action attribute correct. Any text that I put in, and I press Log In, it basically redirects me to /login and does nothing. Anybody got any ideas here?
Here's a link to the page if you need it: http://imtv.forumotion.com/h51-login-mod
Last edited by collinsexton on June 24th 2013, 8:44 pm; edited 1 time in total
Re: HTML Login => Coding Issues
Try using
- Code:
<form action="/login" method="POST" name="form_login">
Re: HTML Login => Coding Issues
Ultron's Vision wrote:Try using
- Code:
<form action="/login" method="POST" name="form_login">
Tried using that code but it didn't work...It did the same thing
Re: HTML Login => Coding Issues
Ultron's Vision wrote:Hm, what forum version are you using?
I'm using PunBB. When I use other login codes they work just fine, this one doesn't for some reason...
Re: HTML Login => Coding Issues
Try it with these <input> values...
And use this for the Submit button.
- Code:
<input type="text" tabindex="1" name="username" id="username" size="30" maxlength="40" value="" class="inputfield"><!-- for username -->
<input type="password" tabindex="2" id="password" name="password" size="30" maxlength="25" class="inputfield">
And use this for the Submit button.
- Code:
<input type="submit" name="login" tabindex="6" value="Log in" class="button2">
Re: HTML Login => Coding Issues
Ultron's Vision wrote:Try it with these <input> values...
- Code:
<input type="text" tabindex="1" name="username" id="username" size="30" maxlength="40" value="" class="inputfield"><!-- for username -->
<input type="password" tabindex="2" id="password" name="password" size="30" maxlength="25" class="inputfield">
And use this for the Submit button.
- Code:
<input type="submit" name="login" tabindex="6" value="Log in" class="button2">
And it works! I added id="submit" after class="button2" and added the placeholders back, and it still works! Thank you very much for your help! Topic Solved.
Re: HTML Login => Coding Issues
Topic Solved & Locked
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Help with html coding on a new post
» html coding for newsletter
» Chatbox coding issues
» HTML coding not working in boards.
» HTML Coding Question
» html coding for newsletter
» Chatbox coding issues
» HTML coding not working in boards.
» HTML Coding Question
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum