Submit a value

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

    Submit a value

    Hi,
    Problem:
    I have asigned a number (34) in javascript to ANB10
    then i want to submit with:

    <INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

    but when I submit the form I see on my mail:
    totale prijs ANB10 !!
    instead of : totale prijs 34??

    HOW come
    and what is the solution?

    Thanks jan


  • p cooper

    #2
    Re: Submit a value


    do it all with JS.
    form.totaleprij s.value=ANB10

    jan wrote:
    [color=blue]
    > Hi,
    > Problem:
    > I have asigned a number (34) in javascript to ANB10
    > then i want to submit with:
    >
    > <INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>
    >
    > but when I submit the form I see on my mail:
    > totale prijs ANB10 !!
    > instead of : totale prijs 34??
    >
    > HOW come
    > and what is the solution?
    >
    > Thanks jan
    >
    >[/color]

    Comment

    • jan

      #3
      Re: Submit a value

      I tried this:

      <SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
      ANB10=88
      form.formpje.to taleprijs.value =ANB10
      </script>

      but then: "form not defined"
      the NAME of the form is: formpje.

      jan

      "p cooper" <pdconetwofour_ numbers_@yahoo. co.uk> schreef in bericht
      news:Mijbb.1124 $nd2.11211928@n ews-text.cableinet. net...[color=blue]
      >
      > do it all with JS.
      > form.totaleprij s.value=ANB10
      >
      > jan wrote:
      >[color=green]
      > > Hi,
      > > Problem:
      > > I have asigned a number (34) in javascript to ANB10
      > > then i want to submit with:
      > >
      > > <INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>
      > >
      > > but when I submit the form I see on my mail:
      > > totale prijs ANB10 !!
      > > instead of : totale prijs 34??
      > >
      > > HOW come
      > > and what is the solution?
      > >
      > > Thanks jan
      > >
      > >[/color]
      >[/color]


      Comment

      • Bryan Field-Elliot

        #4
        Re: Submit a value

        jan wrote:[color=blue]
        > I tried this:
        >
        > <SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
        > ANB10=88
        > form.formpje.to taleprijs.value =ANB10
        > </script>
        >
        > but then: "form not defined"
        > the NAME of the form is: formpje.[/color]


        Try this instead:

        document.formpj e.totaleprijs.v alue=ANB10;



        --

        Bryan Field-Elliot


        Comment

        • jan

          #5
          Re: Submit a value

          I tried:
          But ERROR anser:
          document.formpj e.totaleprijs is empty or no object.

          What next??

          jan

          "Bryan Field-Elliot" <bryan@netmeme. org> schreef in bericht
          news:JRjbb.3056 45$2x.89352@rwc rnsc52.ops.asp. att.net...[color=blue]
          > jan wrote:[color=green]
          > > I tried this:
          > >
          > > <SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
          > > ANB10=88
          > > form.formpje.to taleprijs.value =ANB10
          > > </script>
          > >
          > > but then: "form not defined"
          > > the NAME of the form is: formpje.[/color]
          >
          >
          > Try this instead:
          >
          > document.formpj e.totaleprijs.v alue=ANB10;
          >
          >
          >
          > --
          >
          > Bryan Field-Elliot
          > http://netmeme.org
          >[/color]


          Comment

          • Bryan Field-Elliot

            #6
            Re: Submit a value

            jan wrote:[color=blue]
            > I tried:
            > But ERROR anser:
            > document.formpj e.totaleprijs is empty or no object.
            >
            > What next??
            >[/color]

            What next, hmmm..Well, this looks suspect:


            <INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

            Take out the space in the field name, like this:


            <INPUT NAME = "totaleprij s" TYPE = "HIDDEN" VALUE=ANB10>


            --

            Bryan Field-Elliot


            Comment

            • jan

              #7
              Re: Submit a value

              YES this it!
              Thanks
              jan

              "Bryan Field-Elliot" <bryan@netmeme. org> schreef in bericht
              news:I7kbb.3057 81$2x.89165@rwc rnsc52.ops.asp. att.net...[color=blue]
              > jan wrote:[color=green]
              > > I tried:
              > > But ERROR anser:
              > > document.formpj e.totaleprijs is empty or no object.
              > >
              > > What next??
              > >[/color]
              >
              > What next, hmmm..Well, this looks suspect:
              >
              >
              > <INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>
              >
              > Take out the space in the field name, like this:
              >
              >
              > <INPUT NAME = "totaleprij s" TYPE = "HIDDEN" VALUE=ANB10>
              >
              >
              > --
              >
              > Bryan Field-Elliot
              > http://netmeme.org
              >[/color]


              Comment

              • Bryan Field-Elliot

                #8
                Re: Submit a value

                jan wrote:[color=blue]
                > YES this it!
                > Thanks
                > jan[/color]


                Super!


                --

                Bryan Field-Elliot


                Comment

                Working...