Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML5/CSS
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>
Posted 22-Jan-13 0:20am
Edited 22-Jan-13 0:52am
ridoy50.5K
v2
Comments
ridoy at 22-Jan-13 6:54am
   
where is your redirecting code here?
Sohushah at 29-Jan-13 5:35am
   
when i click on log in button it should be redirected to defectreports.jsp......

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 <head> & </head> Tag
  Permalink  
Comments
Sohushah at 29-Jan-13 5:36am
   
it refreshes the page itself i want to redirect it to defectreports.jsp when login is clicked & user is authenticated...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,518
1 OriginalGriff 478
2 Manas Bhardwaj 394
3 Tadit Dash 310
4 Damith Weerasinghe 260
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 5,856
2 Peter Leow 4,405
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid