The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    HTML Login => Coding Issues

    collinsexton
    collinsexton
    Forumember


    Male Posts : 88
    Reputation : 6
    Language : English, Java | HTML | CSS
    Location : Indiana

    Solved HTML Login => Coding Issues

    Post by collinsexton June 23rd 2013, 1:14 am

    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).

    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
    collinsexton
    collinsexton
    Forumember


    Male Posts : 88
    Reputation : 6
    Language : English, Java | HTML | CSS
    Location : Indiana

    Solved Re: HTML Login => Coding Issues

    Post by collinsexton June 24th 2013, 3:58 pm

    bump?
    Ultron's Vision
    Ultron's Vision
    Forumember


    Male Posts : 631
    Reputation : 45
    Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
    Location : Vienna, Austria

    Solved Re: HTML Login => Coding Issues

    Post by Ultron's Vision June 24th 2013, 5:16 pm

    Try using
    Code:
    <form action="/login" method="POST" name="form_login">
    collinsexton
    collinsexton
    Forumember


    Male Posts : 88
    Reputation : 6
    Language : English, Java | HTML | CSS
    Location : Indiana

    Solved Re: HTML Login => Coding Issues

    Post by collinsexton June 24th 2013, 5:21 pm

    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 Confused
    Ultron's Vision
    Ultron's Vision
    Forumember


    Male Posts : 631
    Reputation : 45
    Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
    Location : Vienna, Austria

    Solved Re: HTML Login => Coding Issues

    Post by Ultron's Vision June 24th 2013, 6:12 pm

    Hm, what forum version are you using?
    collinsexton
    collinsexton
    Forumember


    Male Posts : 88
    Reputation : 6
    Language : English, Java | HTML | CSS
    Location : Indiana

    Solved Re: HTML Login => Coding Issues

    Post by collinsexton June 24th 2013, 7:15 pm

    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...
    Ultron's Vision
    Ultron's Vision
    Forumember


    Male Posts : 631
    Reputation : 45
    Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
    Location : Vienna, Austria

    Solved Re: HTML Login => Coding Issues

    Post by Ultron's Vision June 24th 2013, 8:21 pm

    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">
    collinsexton
    collinsexton
    Forumember


    Male Posts : 88
    Reputation : 6
    Language : English, Java | HTML | CSS
    Location : Indiana

    Solved Re: HTML Login => Coding Issues

    Post by collinsexton June 24th 2013, 8:42 pm

    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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: HTML Login => Coding Issues

    Post by SLGray June 24th 2013, 9:49 pm

    Topic Solved & Locked



    HTML Login => Coding Issues Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 22nd 2024, 7:22 pm