HTML Page Login Form redirect to another Html Page when failed
3 posters
Page 1 of 1
HTML Page Login Form redirect to another Html Page when failed
Hello, I am currently making an Html login page for my forum. The problem is when your login attempt fails it redirects to the forum login failed page: "/login.forum"
Is there a way to make it when your login fails it goes to another Html page?
Thanks in advance!
Is there a way to make it when your login fails it goes to another Html page?
Thanks in advance!
Re: HTML Page Login Form redirect to another Html Page when failed
Well all the stuff regarding the form is dealt with on the /login.form page, probably including the redirect stuff. I wouldn't take this message as an absolute "no" though, as I'm not sure.
Re: HTML Page Login Form redirect to another Html Page when failed
what is the coding you are using to place this on a html page. and what about when the log in is a success, then what it opens/redirects to the forum homepage index.
I would have to see what the html page is all about. is there more then just a log-in on the page, and where exactly would it be redirected if log in attempt did fail?
I would have to see what the html page is all about. is there more then just a log-in on the page, and where exactly would it be redirected if log in attempt did fail?
kirk- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: HTML Page Login Form redirect to another Html Page when failed
Well the coding for login form derives from this:
Javascript:
HTML Page Login: http://crazedoutsiders.niceboard.com/
Other HTML Page Login Fail: http://crazedoutsiders.niceboard.com/h7-access-denied
Javascript:
- Code:
function LGlogin() {
var x = document.getElementById('LGlogin');
if (x.style.display == 'none') {
jQuery(x).add('#LGoverlay').fadeIn('slow');
var r = x.getElementsByTagName('form')[0].redirect;
r.value = window.location.href;
}
else {
jQuery(x).add('#LGoverlay').fadeOut('slow');
}
}
jQuery(function(){ if(document.getElementById('logout')) document.getElementById('LGloginbtn').style.display = 'none'; });
- Code:
<form action="/login.forum" method="post">
<ul>
<strong><label for="username" style="color: #000000;"></label></strong>
<input type="text" name="username" size="25" style="color: #FFFFFF; background-color: #000000; border: 2px inset #540f0a;" placeholder="Username" />
<strong><label for="password" style="color: #000000;"></label></strong>
<input type="password" name="password" size="25" style="color: #FFFFFF; background-color: #000000; border: 2px inset #540f0a;" placeholder="Password" />
<input type="image" class="login-submit" name="login" value="Log in" src="http://i.imgur.com/mfrtMAF.png" style="position: absolute; left: -9999px" />
<input name="redirect" type="hidden" value="">
</form>
HTML Page Login: http://crazedoutsiders.niceboard.com/
Other HTML Page Login Fail: http://crazedoutsiders.niceboard.com/h7-access-denied
Re: HTML Page Login Form redirect to another Html Page when failed
Sorry for the late reply. in the future if you do not get a reply by a staff member like myself feel free to send me a pm and remind me of the thread/problem 
i cant really see anywhere to add a new/redirect link so i am unsure.
I don't really understand why a log in would fail anyway unless someone was not a member, or putting wrong username and pass in?
So yeah i am not really sure how to set this to redirect to a different link with a log in fail?

i cant really see anywhere to add a new/redirect link so i am unsure.
I don't really understand why a log in would fail anyway unless someone was not a member, or putting wrong username and pass in?
So yeah i am not really sure how to set this to redirect to a different link with a log in fail?
kirk- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: HTML Page Login Form redirect to another Html Page when failed
Oh ok thanks for the reply anyway. I'll see if there is something else I can do.
Re: HTML Page Login Form redirect to another Html Page when failed
Since i answered all i can and no one else seems to know as well at this time. o will move the thread to the garbage considering it was really not solved. If someone else dose know how to complete this please message me and i will add it back t the board here.
Thanx
Thanx
kirk- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» How do you load the login page instead of the index.html page automatically
» HTML page as a news form
» How can i make my homepage redirect to a html page
» Html page will not redirect to forum Solved
» How do you load the login page instead of the index.html page automatically
» HTML page as a news form
» How can i make my homepage redirect to a html page
» Html page will not redirect to forum Solved
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum