a pastebin project

Mine

  1. <script type="text/javascript">
  2. function errorcheck()
  3. {
  4. var flag1=1
  5. var flag2=1
  6. var vstring = document.forms['uinput'].elements['address'].value
  7.  
  8.  
  9. if (vstring=="")
  10. {
  11. alert("Must Enter an Address.");
  12. flag=0
  13. }
  14. else
  15. {
  16. vstring=document.forms['uinput'].elements['uemail'].value
  17. alert(vstring);
  18. flag=1
  19. for (i = 0; i < vstring.length; i++)
  20.  
  21.         {
  22.         if (vstring.charAt(i)="@")
  23.                 {
  24.                 alert("@");
  25.                 }
  26.         if (vstring.charAt(i)=".")
  27.                 {
  28.                 alert(".");
  29.                 flag=1
  30.                 }
  31.         }
  32. }
  33. }
  34. </script>

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you 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.