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.

HTML Login => Coding Issues

3 posters

Go down

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

http://imtv.forumotion.com

Back to top Go down

Solved Re: HTML Login => Coding Issues

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

bump?
collinsexton
collinsexton
Forumember

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

http://imtv.forumotion.com

Back to top Go down

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

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

http://duelacademy.net

Back to top Go down

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

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

http://imtv.forumotion.com

Back to top Go down

Solved Re: HTML Login => Coding Issues

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

Hm, what forum version are you using?
Ultron's Vision
Ultron's Vision
Forumember

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

http://duelacademy.net

Back to top Go down

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

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

http://imtv.forumotion.com

Back to top Go down

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

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

http://duelacademy.net

Back to top Go down

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

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

http://imtv.forumotion.com

Back to top Go down

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

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum