Submit a form, not working...

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

    #1

    Submit a form, not working...

    Best groupmember,

    I am working on a login form that uses md5 as cryptation. I have got
    everything to work exept the submit() function. I have verified that
    all rows work except the last on:

    function goForm(){
    val = this.document.f orms.formul.pas sword.value;
    md5 = hex_md5(val);
    this.document.f orms.formul.pas sword.value = md5;
    this.document.f orms.formul.act ion = "login.php" ;
    this.document.f orms.formul.sub mit(); //Only this row is not working
    }

    -- Best Of Times

    Peter Lauri
  • Lee

    #2
    Re: Submit a form, not working...

    Peter Lauri said:[color=blue]
    >
    >Best groupmember,
    >
    >I am working on a login form that uses md5 as cryptation. I have got
    >everything to work exept the submit() function. I have verified that
    >all rows work except the last on:
    >
    >function goForm(){
    > val = this.document.f orms.formul.pas sword.value;
    > md5 = hex_md5(val);
    > this.document.f orms.formul.pas sword.value = md5;
    > this.document.f orms.formul.act ion = "login.php" ;
    > this.document.f orms.formul.sub mit(); //Only this row is not working
    >}[/color]

    The most common cause of this problem is having a form element named "submit",
    which clobbers the submit() method. If you have such an element, change its
    name.

    Comment

    • Mick White

      #3
      Re: Submit a form, not working...

      Lee wrote:
      [color=blue]
      > Peter Lauri said:[/color]
      [snip][color=blue][color=green]
      >>function goForm(){
      >> val = this.document.f orms.formul.pas sword.value;
      >> md5 = hex_md5(val);<----- ???[/color][/color]
      [snip][color=blue]
      >
      > The most common cause of this problem is having a form element named "submit",
      > which clobbers the submit() method. If you have such an element, change its
      > name.
      >[/color]

      And where does "val" come from?
      Mick

      Comment

      • Peter Lauri

        #4
        Re: Submit a form, not working...

        Mick White <mwhite13BOGUS@ rochester.rr.co m> wrote in message news:<xi6rd.308 42$1u.16892@twi ster.nyroc.rr.c om>...[color=blue]
        > Lee wrote:
        >[color=green]
        > > Peter Lauri said:[/color]
        > [snip][color=green][color=darkred]
        > >>function goForm(){
        > >> val = this.document.f orms.formul.pas sword.value;
        > >> md5 = hex_md5(val);<----- ???[/color][/color]
        > [snip][color=green]
        > >
        > > The most common cause of this problem is having a form element named "submit",
        > > which clobbers the submit() method. If you have such an element, change its
        > > name.
        > >[/color]
        >
        > And where does "val" come from?
        > Mick[/color]

        val comes from...

        function goForm(){
        val = this.document.f orms.formul.pas sword.value; //The form that is
        submitting the password, ok?
        md5 = hex_md5(val);<----- ???

        /Peter

        Comment

        • Mick White

          #5
          Re: Submit a form, not working...

          Peter Lauri wrote:
          [color=blue]
          >
          > val comes from...
          >
          > function goForm(){
          > val = this.document.f orms.formul.pas sword.value; //The form that is
          > submitting the password, ok?
          > md5 = hex_md5(val);<----- ???
          >[/color]


          Temporary brain freeze, sorry.
          Mick

          Comment

          • Peter Lauri

            #6
            Re: Submit a form, not working...

            Mick White <mwhite13BOGUS@ rochester.rr.co m> wrote in message news:<NPerd.272 45$Uf.5276@twis ter.nyroc.rr.co m>...[color=blue]
            > Peter Lauri wrote:
            >[color=green]
            > >
            > > val comes from...
            > >
            > > function goForm(){
            > > val = this.document.f orms.formul.pas sword.value; //The form that is
            > > submitting the password, ok?
            > > md5 = hex_md5(val);<----- ???
            > >[/color]
            >
            >
            > Temporary brain freeze, sorry.
            > Mick[/color]

            But you did not answer my question :)

            Comment

            • Mick White

              #7
              Re: Submit a form, not working...

              Peter Lauri wrote:[color=blue]
              > Mick White <mwhite13BOGUS@ rochester.rr.co m> wrote in message news:<NPerd.272 45$Uf.5276@twis ter.nyroc.rr.co m>...
              >[color=green]
              >>Peter Lauri wrote:[/color][/color]
              [color=blue][color=green][color=darkred]
              >>>function goForm(){
              >>>val = this.document.f orms.formul.pas sword.value; //The form that is
              >>>submitting the password, ok?
              >>>md5 = hex_md5(val);<----- ???
              >>>[/color]
              >>
              >>
              >>Temporary brain freeze, sorry.
              >>Mick[/color]
              >
              >
              > But you did not answer my question :)[/color]

              Did you read Lee's posting? And did it help?
              Mick

              Comment

              Working...