Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.24 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <form action = "form.php" >
  4.  
  5. Username <input type = text name = "user" >  <br>
  6. <br><br>
  7. Password <input type = text name = "pass" > <br><br>
  8.  
  9.  
  10.  
  11. </form>
  12.  
  13. <style>#amount    { display : none ;    background: white;  }</style>
  14. <style>#field {width 70%    ;   margin: auto;               }</style>
  15. <script>
  16. function appear ( ) {
  17. ptr1 = document.getElementById("amount")
  18. ptr2 = document.getElementById("choice")
  19. $menuvalue = ptr2.value;
  20. if ( $menuvalue == "D") {ptr1.style.display = "block" ; return ;}
  21. else if ($menuvalue == "S") {ptr1.style.display = "none";  return ;}
  22. else if ($menuvalue == "W") {ptr1.style.display = "block";  return ;}
  23. else if ($menuvalue == "") {ptr1.style.display = "none";  return ;}
  24.  
  25.  
  26. }
  27. </script>
  28. <form  action = "form.php" >
  29.  
  30.  
  31. <fieldset id="field"><legend> Please Select A Service Below <br><br></legend>
  32. <input type = "number" text step = "1" name="amount" id="amount"
  33.         autocomplete = "off" placeholder = "Amount" required><br><br>
  34. <select name="choice"    id ="choice" onchange="appear()" >
  35. <option value="" > Choose </option>
  36. <option value="S" > Show </option>
  37. <option value="D" > Deposit </option>
  38. <option value="W" > Withdraw </option>
  39. </select><br><br>
  40. <input type=submit>
  41. </fieldset>
  42. </form>
  43.  
  44. <br><br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement