Advertisement
Guest User

Untitled

a guest
May 30th, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <%
  2. String password=null;
  3. String username=null;
  4. Cookie[] cookies=request.getCookies();
  5. if(cookies != null)
  6. {
  7. for(Cookie c:cookies)
  8. {
  9. if((c.getName().equals("username")))
  10. {
  11. username=c.getValue();
  12. }
  13. if((c.getName().equals("password")))
  14. {
  15. password=c.getValue();
  16. }
  17. }
  18. %>
  19. <form method="post" action="">
  20. <table border="1">
  21. <tr>
  22. <td>Tên ðãng nh?p</td>
  23. <td><input type="text" name="username" value="<%username%>"/></td>
  24. </tr>
  25. <tr>
  26. <td>M?t kh?u</td>
  27. <td><input type="password" name="password" value="<%password%>"/></td>
  28. </tr>
  29. <tr>
  30. <td><input type="submit" value="Ðãng nh?p"/></td>
  31. </tr>
  32. </table>
  33. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement