登录时重定向到另一个页面 [英] Redirect to another page on login

查看:181
本文介绍了登录时重定向到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面说login.html ....当用户通过身份验证我希望他在页面上重定向说DefectReports.jsp ...

这是我的登录信息。 html页面......

但是当我点击地址栏中的登录按钮时它显示/DefectReports.jsp但我仍然在登录页面上....

可以任何人发现错误?

i have a page say login.html.... when the user is authenticated i want him to redirect on a page say DefectReports.jsp...
this is my login. html page...
but when i click on login button in address bar it shows /DefectReports.jsp but i m still on the login page....
can anyone find the mistake?

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title>Paper Stack</title>
<link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    <body background="C:\Users\upasna\Downloads\71.jpg">
       <div class="container">
    <section id="content">
            <form action="DefectReports.jsp">
            <h1>Login Form</h1>
            <div>
                <input type="text" placeholder="Username" required="" id="username" />
            </div>
            <div>
                <input type="password" placeholder="Password" required="" id="password" />
            </div>
            <div>
                            <input type="submit" value="Log in" />

            </div>
        </form><!-- form -->

    </section><!-- content -->
</div><!-- container -->
    </body>
</html>

推荐答案

刚刚参加了输入但忘记重定向



使用:



< meta HTTP-EQUIV =REFRESH内容=0; url = http://www.YourPage.com/index.html>



确保它在& Tag
You have just taken the input but forgot to redirect

Use:

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.YourPage.com/index.html">

Make sure it is under & Tag

这篇关于登录时重定向到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆