Menu

How can I remove function validatePage1()?

Help
j1010
2007-12-20
2013-06-03
  • j1010

    j1010 - 2007-12-20

    How can I remove function validatePage? I guess that I have to change onSubmit from current to what?

    <form method=post enctype=multipart/form-data action=processor.php onSubmit="return validatePage1();">

    Thank you.

     
    • TNTEverett

      TNTEverett - 2007-12-20

      I really don't advise it but if you just remove the
      onSubmit="return validatePage1();"
      stuff the form will still work but it won't validate anything prior to submitting the form. 
      You could choose to move the Java to a separate file and just put a single line at the top of the form to include the javascript file. 

      Somewhere before the </head> tag:
      <script src="{some path}/yourjava.js"></script>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.