The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

HTML Login => Coding Issues

View previous topic View next topic Go down

Solved HTML Login => Coding Issues

Post by collinsexton on 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
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 on June 24th 2013, 3:58 pm

bump?

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 on June 24th 2013, 5:16 pm

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

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 on 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 thingConfused

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 on June 24th 2013, 6:12 pm

Hm, what forum version are you using?

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 on 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
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 on 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
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 on 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 addedid="submit" after class="button2" and added the placeholders back, and it still works! Thank you very much for your help! Topic Solved.

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 on June 24th 2013, 9:49 pm

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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