forms stopped working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill

    forms stopped working

    We have 3 simple submission forms on our website that have worked great
    for at least two years. Here is one:

    Nothing has changed to my knowledge. Suddenly
    nothing is being delivered. When you send the form in IE the debugger
    pops up (run time error occured on line 71) and points to the following
    line within the form: <form method="post" action="cgi-bin/formmail.pl"
    onsubmit="retur n validateForm(th is)"> This is not an SMTP issue -
    verified. We were using Matts formmail; so I tried the NMS formmail
    (more secure) - the same problem occurred with it also so we know its
    not a formmail issue. It must be our actual html (xhtml)form. This may
    be a javascript or html issue not sure. Anyone see anything wrong with
    the above code or form? Thanks - Bill

  • RobB

    #2
    Re: forms stopped working

    Bill wrote:[color=blue]
    > We have 3 simple submission forms on our website that have worked[/color]
    great[color=blue]
    > for at least two years. Here is one:
    > http://www.hcpl.lib.fl.us/catalog_materialrequest.htm
    > Nothing has changed to my knowledge. Suddenly
    > nothing is being delivered. When you send the form in IE the debugger
    > pops up (run time error occured on line 71) and points to the[/color]
    following[color=blue]
    > line within the form: <form method="post"[/color]
    action="cgi-bin/formmail.pl"[color=blue]
    > onsubmit="retur n validateForm(th is)"> This is not an SMTP issue -
    > verified. We were using Matts formmail; so I tried the NMS formmail
    > (more secure) - the same problem occurred with it also so we know its
    > not a formmail issue. It must be our actual html (xhtml)form. This[/color]
    may[color=blue]
    > be a javascript or html issue not sure. Anyone see anything wrong[/color]
    with[color=blue]
    > the above code or form? Thanks - Bill[/color]

    The only thing wrong with the validator on that page is - there *is* no
    validator on that page. Just a call to it in the form tag. No script.
    Forgot the <script type="text/javascript" src="..."></script> tagpair,
    perhaps.

    Comment

    • Bill

      #3
      Re: forms stopped working

      Thanks Rob for responding - how would that form(s) have worked in the
      past? If I understand you correctly (and I may not) you are saying a
      tag is needed to identify the java script. Look at

      The example here for a simple form does not include that tag. I'm not a
      programmer so any help at all would be appreciated.

      RobB wrote:[color=blue]
      > Bill wrote:[color=green]
      > > We have 3 simple submission forms on our website that have worked[/color]
      > great[color=green]
      > > for at least two years. Here is one:
      > > http://www.hcpl.lib.fl.us/catalog_materialrequest.htm
      > > Nothing has changed to my knowledge. Suddenly
      > > nothing is being delivered. When you send the form in IE the[/color][/color]
      debugger[color=blue][color=green]
      > > pops up (run time error occured on line 71) and points to the[/color]
      > following[color=green]
      > > line within the form: <form method="post"[/color]
      > action="cgi-bin/formmail.pl"[color=green]
      > > onsubmit="retur n validateForm(th is)"> This is not an SMTP issue -
      > > verified. We were using Matts formmail; so I tried the NMS formmail
      > > (more secure) - the same problem occurred with it also so we know[/color][/color]
      its[color=blue][color=green]
      > > not a formmail issue. It must be our actual html (xhtml)form. This[/color]
      > may[color=green]
      > > be a javascript or html issue not sure. Anyone see anything wrong[/color]
      > with[color=green]
      > > the above code or form? Thanks - Bill[/color]
      >
      > The only thing wrong with the validator on that page is - there *is*[/color]
      no[color=blue]
      > validator on that page. Just a call to it in the form tag. No script.
      > Forgot the <script type="text/javascript" src="..."></script>[/color]
      tagpair,[color=blue]
      > perhaps.[/color]

      Comment

      • RobB

        #4
        Re: forms stopped working

        Bill wrote:[color=blue]
        > Thanks Rob for responding - how would that form(s) have worked in the
        > past? If I understand you correctly (and I may not) you are saying a
        > tag is needed to identify the java script. Look at
        > http://nms-cgi.sourceforge.net/formm...-3.14c1/README
        > The example here for a simple form does not include that tag. I'm not[/color]
        a[color=blue]
        > programmer so any help at all would be appreciated.
        >
        > RobB wrote:[color=green]
        > > Bill wrote:[color=darkred]
        > > > We have 3 simple submission forms on our website that have worked[/color]
        > > great[color=darkred]
        > > > for at least two years. Here is one:
        > > > http://www.hcpl.lib.fl.us/catalog_materialrequest.htm
        > > > Nothing has changed to my knowledge. Suddenly
        > > > nothing is being delivered. When you send the form in IE the[/color][/color]
        > debugger[color=green][color=darkred]
        > > > pops up (run time error occured on line 71) and points to the[/color]
        > > following[color=darkred]
        > > > line within the form: <form method="post"[/color]
        > > action="cgi-bin/formmail.pl"[color=darkred]
        > > > onsubmit="retur n validateForm(th is)"> This is not an SMTP issue[/color][/color][/color]
        -[color=blue][color=green][color=darkred]
        > > > verified. We were using Matts formmail; so I tried the NMS[/color][/color][/color]
        formmail[color=blue][color=green][color=darkred]
        > > > (more secure) - the same problem occurred with it also so we know[/color][/color]
        > its[color=green][color=darkred]
        > > > not a formmail issue. It must be our actual html (xhtml)form.[/color][/color][/color]
        This[color=blue][color=green]
        > > may[color=darkred]
        > > > be a javascript or html issue not sure. Anyone see anything wrong[/color]
        > > with[color=darkred]
        > > > the above code or form? Thanks - Bill[/color]
        > >
        > > The only thing wrong with the validator on that page is - there[/color][/color]
        *is*[color=blue]
        > no[color=green]
        > > validator on that page. Just a call to it in the form tag. No[/color][/color]
        script.[color=blue][color=green]
        > > Forgot the <script type="text/javascript" src="..."></script>[/color]
        > tagpair,[color=green]
        > > perhaps.[/color][/color]

        This:

        <form.....onsub mit="return validateForm(th is)">

        ....calls a JavaScript function 'validateForm' to check some fields,
        presumably, before uploading. In order for it to work properly, a
        function of that name must be available in memory, having been
        previously loaded either from a separate .js file or from being
        embedded directly in 'catalog_materi alrequest.htm'. It hasn't been, so
        an error occurs. This will cause the form to submit regardless so it's
        unclear if that's the only issue - but it certainly is the first item
        to fix. Find that script and make it available to the page.

        Comment

        • Bill

          #5
          Re: forms stopped working

          Rob, the validate function has to be in there or somewhere; this thing
          has been working perfectly (and 2 others) for a long time. What could
          have changed? Can validate be in the formmail.pl?

          RobB wrote:[color=blue]
          > Bill wrote:[color=green]
          > > Thanks Rob for responding - how would that form(s) have worked in[/color][/color]
          the[color=blue][color=green]
          > > past? If I understand you correctly (and I may not) you are saying[/color][/color]
          a[color=blue][color=green]
          > > tag is needed to identify the java script. Look at
          > > http://nms-cgi.sourceforge.net/formm...-3.14c1/README
          > > The example here for a simple form does not include that tag. I'm[/color][/color]
          not[color=blue]
          > a[color=green]
          > > programmer so any help at all would be appreciated.
          > >
          > > RobB wrote:[color=darkred]
          > > > Bill wrote:
          > > > > We have 3 simple submission forms on our website that have[/color][/color][/color]
          worked[color=blue][color=green][color=darkred]
          > > > great
          > > > > for at least two years. Here is one:
          > > > > http://www.hcpl.lib.fl.us/catalog_materialrequest.htm
          > > > > Nothing has changed to my knowledge. Suddenly
          > > > > nothing is being delivered. When you send the form in IE the[/color]
          > > debugger[color=darkred]
          > > > > pops up (run time error occured on line 71) and points to the
          > > > following
          > > > > line within the form: <form method="post"
          > > > action="cgi-bin/formmail.pl"
          > > > > onsubmit="retur n validateForm(th is)"> This is not an SMTP[/color][/color][/color]
          issue[color=blue]
          > -[color=green][color=darkred]
          > > > > verified. We were using Matts formmail; so I tried the NMS[/color][/color]
          > formmail[color=green][color=darkred]
          > > > > (more secure) - the same problem occurred with it also so we[/color][/color][/color]
          know[color=blue][color=green]
          > > its[color=darkred]
          > > > > not a formmail issue. It must be our actual html (xhtml)form.[/color][/color]
          > This[color=green][color=darkred]
          > > > may
          > > > > be a javascript or html issue not sure. Anyone see anything[/color][/color][/color]
          wrong[color=blue][color=green][color=darkred]
          > > > with
          > > > > the above code or form? Thanks - Bill
          > > >
          > > > The only thing wrong with the validator on that page is - there[/color][/color]
          > *is*[color=green]
          > > no[color=darkred]
          > > > validator on that page. Just a call to it in the form tag. No[/color][/color]
          > script.[color=green][color=darkred]
          > > > Forgot the <script type="text/javascript" src="..."></script>[/color]
          > > tagpair,[color=darkred]
          > > > perhaps.[/color][/color]
          >
          > This:
          >
          > <form.....onsub mit="return validateForm(th is)">
          >
          > ...calls a JavaScript function 'validateForm' to check some fields,
          > presumably, before uploading. In order for it to work properly, a
          > function of that name must be available in memory, having been
          > previously loaded either from a separate .js file or from being
          > embedded directly in 'catalog_materi alrequest.htm'. It hasn't been,[/color]
          so[color=blue]
          > an error occurs. This will cause the form to submit regardless so[/color]
          it's[color=blue]
          > unclear if that's the only issue - but it certainly is the first item
          > to fix. Find that script and make it available to the page.[/color]

          Comment

          • Lee

            #6
            Re: forms stopped working

            Bill said:[color=blue]
            >
            >Rob, the validate function has to be in there or somewhere; this thing
            >has been working perfectly (and 2 others) for a long time. What could
            >have changed? Can validate be in the formmail.pl?[/color]

            It would have to either be defined directly in that HTML page or in the
            styleswitcher.j s file that is loaded near the beginning of the file.
            It's not there, either. Maybe that file was changed?

            Comment

            • RobB

              #7
              Re: forms stopped working

              Bill wrote:[color=blue]
              > Rob, the validate function has to be in there or somewhere; this[/color]
              thing[color=blue]
              > has been working perfectly (and 2 others) for a long time. What could
              > have changed? Can validate be in the formmail.pl?
              >
              > RobB wrote:[color=green]
              > > Bill wrote:[color=darkred]
              > > > Thanks Rob for responding - how would that form(s) have worked in[/color][/color]
              > the[color=green][color=darkred]
              > > > past? If I understand you correctly (and I may not) you are[/color][/color][/color]
              saying[color=blue]
              > a[color=green][color=darkred]
              > > > tag is needed to identify the java script. Look at
              > > > http://nms-cgi.sourceforge.net/formm...-3.14c1/README
              > > > The example here for a simple form does not include that tag. I'm[/color][/color]
              > not[color=green]
              > > a[color=darkred]
              > > > programmer so any help at all would be appreciated.
              > > >
              > > > RobB wrote:
              > > > > Bill wrote:
              > > > > > We have 3 simple submission forms on our website that have[/color][/color]
              > worked[color=green][color=darkred]
              > > > > great
              > > > > > for at least two years. Here is one:
              > > > > > http://www.hcpl.lib.fl.us/catalog_materialrequest.htm
              > > > > > Nothing has changed to my knowledge. Suddenly
              > > > > > nothing is being delivered. When you send the form in IE the
              > > > debugger
              > > > > > pops up (run time error occured on line 71) and points to the
              > > > > following
              > > > > > line within the form: <form method="post"
              > > > > action="cgi-bin/formmail.pl"
              > > > > > onsubmit="retur n validateForm(th is)"> This is not an SMTP[/color][/color]
              > issue[color=green]
              > > -[color=darkred]
              > > > > > verified. We were using Matts formmail; so I tried the NMS[/color]
              > > formmail[color=darkred]
              > > > > > (more secure) - the same problem occurred with it also so we[/color][/color]
              > know[color=green][color=darkred]
              > > > its
              > > > > > not a formmail issue. It must be our actual html (xhtml)form.[/color]
              > > This[color=darkred]
              > > > > may
              > > > > > be a javascript or html issue not sure. Anyone see anything[/color][/color]
              > wrong[color=green][color=darkred]
              > > > > with
              > > > > > the above code or form? Thanks - Bill
              > > > >
              > > > > The only thing wrong with the validator on that page is - there[/color]
              > > *is*[color=darkred]
              > > > no
              > > > > validator on that page. Just a call to it in the form tag. No[/color]
              > > script.[color=darkred]
              > > > > Forgot the <script type="text/javascript" src="..."></script>
              > > > tagpair,
              > > > > perhaps.[/color]
              > >
              > > This:
              > >
              > > <form.....onsub mit="return validateForm(th is)">
              > >
              > > ...calls a JavaScript function 'validateForm' to check some fields,
              > > presumably, before uploading. In order for it to work properly, a
              > > function of that name must be available in memory, having been
              > > previously loaded either from a separate .js file or from being
              > > embedded directly in 'catalog_materi alrequest.htm'. It hasn't been,[/color]
              > so[color=green]
              > > an error occurs. This will cause the form to submit regardless so[/color]
              > it's[color=green]
              > > unclear if that's the only issue - but it certainly is the first[/color][/color]
              item[color=blue][color=green]
              > > to fix. Find that script and make it available to the page.[/color][/color]

              Bill...

              Stick this in the <head>er of 'catalog_materi alrequest.htm':

              function validateForm(ob j)
              {
              alert(obj.onsub mit);
              return true;
              }

              </script>

              You'll see the actual content of Form.onsubmit (an anonymous - nameless
              - function, set with <form...onsubmi t=" *this* ">), alerted by the
              (dummy) function it now calls. Your formmail appears to be working
              satisfactorily. Someone here will provide a validator for you (tons
              available via google 'javascript form validate') if you can't locate
              'validateForm' anywhere in your files.

              Comment

              • Bill

                #8
                Re: forms stopped working

                Rob, I put in your validate script and upon submit
                http://www.hcpl.lib.fl.us/catalog_test_form.htm there is a MS error
                "function anonymous" return validate form this - honestly I'm not sure
                if what you were telling me was this exact result or to expect
                something else. Just to be clear, we never validated in the past (I
                know thats weak - but we are a library - and it has not been an issue)
                and I have to keep asking what possibly changed? Every SMTP test
                passes; I have an original backup of that form and it fails also;
                there is not validate function under the styleswitcher js - there is no
                validate form file/script or anything that I can see. I have even
                tried a different formmail script (NMS formmail) This thing is driving
                me nuts! Any other thoughts - thanks for your your patience with this
                - Bill

                Comment

                • RobB

                  #9
                  Re: forms stopped working

                  Bill wrote:[color=blue]
                  > Rob, I put in your validate script and upon submit
                  > http://www.hcpl.lib.fl.us/catalog_test_form.htm there is a MS error
                  > "function anonymous" return validate form this - honestly I'm not[/color]
                  sure[color=blue]
                  > if what you were telling me was this exact result or to expect
                  > something else.[/color]

                  Nope, that was the desired result. Not an 'MS error', just a JScript
                  alert, nothing to be alarmed about (just alerted).

                  Just to be clear, we never validated in the past...

                  Well, you're validating now:

                  <form------->onsubmit="retu rn validateForm(th is)"<------>

                  That's a JavaScript call to a validator function. Remove it if you
                  don't need the validation. What happens then?

                  Comment

                  • Bill

                    #10
                    Re: forms stopped working

                    thanks Rob - yes without the validator - everything "appears" to work -
                    no errors; however the form is not being delivered. I know the SMTP
                    thing is for another group but if you have any ideas to test with; so
                    far all my outgoing and incoming tests have passed.

                    Comment

                    • Bill

                      #11
                      Re: forms stopped working

                      Fixed - found out everything was working perfectly. Our spam filter
                      had recently been changed to suppress auto forwarding, therefore mail
                      was blocked. Found alt solution - thanks for the help - Bill

                      Comment

                      Working...