Advertisement
Punisher1542

Register (sign up) form

Feb 6th, 2018
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1.  
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <title> Register form (2) </title>
  6. <style>
  7. a:link {
  8. color: Blue;
  9. background-color: transparent;
  10. text-decoration: underline;
  11. }
  12. a:visited {
  13. color: red;
  14. background-color: transparent;
  15. text-decoration: underline;
  16. }
  17. a:hover {
  18. color: yellow;
  19. background-color: transparent;
  20. text-decoration: underline;
  21. }
  22. a:active {
  23. color: black;
  24. background-color: transparent;
  25. text-decoration: underline;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <h1 style="color:red;">FINAL PART OF REGISTRATION!</h1>
  31. <p> Fill out the fields below to enter my website:</p><hr>
  32.  
  33. <form action="index.html" autocomplete="on">
  34.  
  35. <label for="firstnamesignup" class="fname" data-icon="u">First Name:</label>
  36. <input id="firstnamesignup" name="firstnamesignup" required="required" type="text" placeholder="First" />
  37. </p>
  38. <p>
  39. <label for="lastnamesignup" class="lname" data-icon="u">Last Name:</label>
  40. <input id="lastnamesignup" name="lastnamesignup" required="required" type="text" placeholder="Last" />
  41. </p>
  42. <p>
  43. <label for="usernamesignup" class="uname" data-icon="u">Username:</label>
  44. <input id="usernamesignup" name="usernamesignup" required="required" type="text" placeholder="Username" />
  45. </p>
  46. <p>
  47. <label for="passwordsignup" class="youpasswd" data-icon="p">Password:</label>
  48. <input id="passwordsignup" name="passwordsignup" required="required" type="password" placeholder="Password"/>
  49. </p>
  50. <p>
  51. <label for="passwordsignup_confirm" class="password" data-icon="p">Confirm Password:</label>
  52. <input id="passwordsignup_confirm" name="passwordsignup_confirm" required="required" type="password" placeholder="Password Confirm"/>
  53. </p>
  54. <p>
  55. <label for="emailsignup" class="youmail" data-icon="e" >Email:</label>
  56. <input id="emailsignup" name="emailsignup" required="required" type="email" placeholder="example@gmail.com"/>
  57. </p>
  58. <p>
  59. <label>Date of Birth:</label>
  60. <select name="month" onChange="changeDate(this.options[selectedIndex].value);">
  61. <option value="na">Month</option>
  62. <option value="1">January</option>
  63. <option value="2">February</option>
  64. <option value="3">March</option>
  65. <option value="4">April</option>
  66. <option value="5">May</option>
  67. <option value="6">June</option>
  68. <option value="7">July</option>
  69. <option value="8">August</option>
  70. <option value="9">September</option>
  71. <option value="10">October</option>
  72. <option value="11">November</option>
  73. <option value="12">December</option>
  74. </select>
  75. <select name="day" id="day">
  76. <option value="na">Day</option>
  77. </select>
  78. <select name="year" id="year">
  79. <option value="na">Year</option>
  80. </select>
  81. <script language="JavaScript" type="text/javascript">
  82. function changeDate(i){
  83. var e = document.getElementById('day');
  84. while(e.length>0)
  85. e.remove(e.length-1);
  86. var j=-1;
  87. if(i=="na")
  88. k=0;
  89. else if(i==2)
  90. k=28;
  91. else if(i==4||i==6||i==9||i==11)
  92. k=30;
  93. else
  94. k=31;
  95. while(j++<k){
  96. var s=document.createElement('option');
  97. var e=document.getElementById('day');
  98. if(j==0){
  99. s.text="Day";
  100. s.value="na";
  101. try{
  102. e.add(s,null);}
  103. catch(ex){
  104. e.add(s);}}
  105. else{
  106. s.text=j;
  107. s.value=j;
  108. try{
  109. e.add(s,null);}
  110. catch(ex){
  111. e.add(s);}}}}
  112. y = 1998;
  113. while (y-->1908){
  114. var s = document.createElement('option');
  115. var e = document.getElementById('year');
  116. s.text=y;
  117. s.value=y;
  118. try{
  119. e.add(s,null);}
  120. catch(ex){
  121. e.add(s);}}
  122. </script>
  123. </p>
  124. <p>
  125. <label>Gender:</label>
  126. <select name="Gender">
  127. <option value="male">Male</option>
  128. <option value="female">Female</option>
  129. </select>
  130. </p>
  131. <p class="signin button">
  132. <input type="submit" value="Enter"/>
  133. </p>
  134. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement