Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Thursday, February 9th, 2006 at 3:16:40pm MST 

  1. <html>
  2.  
  3. <head>
  4. <script type="text/javascript">
  5. function errorcheck()
  6. {
  7. var flag1=1
  8. var flag2=1
  9. var vstring = ""
  10. vstring=uinput.address.value
  11.  
  12.  
  13. if (vstring=="")
  14. {
  15. alert("Must Enter an Address.");
  16. flag=0
  17. }
  18. else
  19. {
  20. vstring=uinput.uemail.value
  21. alert(vstring);
  22. flag=1
  23. for (i = 1; i <= vstring.length; i++)
  24.  
  25.         {
  26.         if (vstring.charAt(i)="@")
  27.                 {
  28.                 alert("@");
  29.                 }
  30.         if (vstring.charAt(i)=".")
  31.                 {
  32.                 alert(".");
  33.                 flag=1
  34.                 }
  35.         }
  36. }
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <form name="uinput" action="" method="get">
  42.  
  43. <!name>
  44. First Name:
  45. <input type="text" name="first">
  46. <br>
  47. Last Name:
  48. <input type="text" name="last">
  49.  
  50. <br>
  51.  
  52. Age:
  53. <select name="age">
  54. <option value=a12>12
  55. <option value=a13>13
  56. <option value=a14>14
  57. <option value=a15>15
  58. <option value=a16>16
  59. <option value=a17>17
  60. <option value=a18>18
  61. <option value=a19>19
  62. <option value=a20>20
  63. <option value=a21>21
  64. </select>
  65.  
  66. <br>
  67. Grade:
  68. <select name="grade">
  69. <option value=g9>9
  70. <option value=g10>10
  71. <option value=g11>11
  72. <option value=g12>12
  73. <option value=g13>13
  74. </select>
  75. <br>
  76. Address:
  77. <input type="text" name="address">
  78.  
  79. <br>
  80. Postal Code:
  81. <input type="text" name="postcode">
  82.  
  83. <br>
  84. Province:
  85. <select name="province">
  86. <option value=yk>Yukon
  87. <option value=nw>North West Territories
  88. <option value=nv>Nunavit
  89. <option value=bc>British Columbia
  90. <option value=ab>Alberta
  91. <option value=sk>Saskatchewan
  92. <option value=mn>Manitoba
  93. <option value=on>Ontario
  94. <option value=qc>Quebec
  95. <option value=nf>New FoundLand
  96. <option value=ns>Nova Scotia
  97. <option value=nb>New Brunswick
  98. <option value=pe>Prince Edward Island
  99. </select>
  100.  
  101. <br>
  102. Email:
  103. <input type="text" name="uemail">
  104. <br><br>
  105. <input type="submit" value="Click" onClick="errorcheck()">
  106. </form>
  107. </body>
  108. </html>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.