vijayrami

dbform

Apr 17th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <head>
  3. <title>User Input Form</title>
  4. <style type="text/css">
  5. p {color: green;}
  6. body {background-color: skyblue;}
  7. td {color: green; font-family: sans-serif; font-size: 20px; font-style: italic; font-weight: bolder;}
  8. h1 {color: red; font-family: sans-serif; text-align: left;}
  9. </style>
  10. <script type="text/javascript" src="livevalidation_standalone.compressed.js">
  11. </script>
  12. </head>
  13. <body>
  14. <h1>Please Fill Up the Form</h1>
  15. <form action="form.php" enctype="multipart/form-data" method="post">
  16. <table border='1' height='400' width='600'>
  17. <tr>
  18. <td>
  19. <label>First Name:</label>
  20. <input type="text" name="fname" placeholder="Enter Your First Name" id="fname"/><br/>
  21. <script type="text/javascript">
  22. var fname = new LiveValidation( "fname", { validMessage: "Your First Name Is Correct", wait: 500 } );
  23. fname.add( Validate.Presence,{ failureMessage: "Please Enter your First Name Here" } );
  24. </script>
  25. </td>
  26. </tr>
  27. <tr>
  28. <td>
  29. <label>Last Name:</label>
  30. <input type="text" name="lname" placeholder="Enter Your Last Name" id="lname"/><br/>
  31. <script type="text/javascript">
  32. var lname = new LiveValidation( "lname", { validMessage: "Your last Name Is Correct", wait: 500 } );
  33. lname.add( Validate.Presence,{ failureMessage: "Please Enter your Last Name Here" } );
  34. </script>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>
  39. Gender <input type="radio" name="gr" value="male"/> Male <input type="radio" name="gr" value="female"/> Female<br />
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>
  44. Qulification (Mulitiple Selection)
  45. <select name="quli[]" multiple="yes">
  46. <option>select</option>
  47. <option>Mca</option>
  48. <option>Bsc</option>
  49. <option>Bcom</option>
  50. <option>M</option>
  51. </select><br />
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. <label>Address</label>
  57. <input type="text" name="address" placeholder="Enter Your Address" id="address"/><br/>
  58. <script type="text/javascript">
  59. var address = new LiveValidation( "address", { validMessage: "Your Address Is Correct", wait: 500 } );
  60. address.add( Validate.Presence,{ failureMessage: "Please Enter your Address Here" } );
  61. </script>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>
  66. <label>City</label>
  67. <input type="text" name="city" placeholder="Enter Your City" id="city"/><br/>
  68. <script type="text/javascript">
  69. var city = new LiveValidation( "city", { validMessage: "Your City is Correct", wait: 500 } );
  70. city.add( Validate.Presence,{ failureMessage: "Please Enter Your City Here" } );
  71. </script>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>
  76. <label>Country</label>
  77. <input type="text" name="country" placeholder="Enter Your Country" id="country"/><br/>
  78. <script type="text/javascript">
  79. var country = new LiveValidation( "country", { validMessage: "Your Country is Correct", wait: 500 } );
  80. country.add( Validate.Presence,{ failureMessage: "Please Enter Your Country Here" } );
  81. </script>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <label for="file">Filename:</label>
  87. <input type="file" name="file" id="file"><br>
  88. </td>
  89. </tr>
  90. </table>
  91. <input type="submit" name="submit" value="add"/>
  92. </form>
  93. </body>
  94. </html>
Advertisement
Add Comment
Please, Sign In to add comment