pass html form checkbox description data to a new html form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • txguy
    New Member
    • Aug 2007
    • 22

    pass html form checkbox description data to a new html form

    thanks for your help. we have a html form with multiple checkboxes, over 1210, and we are running a javascript that tallies total number of boxes and prices for the checkboxes the user selects.

    data looks like this ....
    [code=html]
    <input type="checkbox" name="C07001" id="C07001" value=1 descrip="3'x18' , BROWN, ASD-BRO-07001, oz, Denier, Weave, Grommets every inchs, each @****4.97" item="07001" price="****4.97 " onclick="totalC heckboxes(this) ;" readonly>
    [/code]
    we are trying to pass the values for descrip, price and item to a second html page that allows the user to select quantities for the items selected and to input user, shipping and billing info and then to submit the order.

    the ITEM, DESCRIP and PRICE would be passed to text boxes on the second page and a user input box would allow the user to select quantities. then the last box would multiple price times qty to display total extended price per item.

    this form looks like this ...
    [code=html]
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="10%"><fo nt size="2">Item</font></td>
    <td width="60%"><fo nt size="2">Descri ption</font></td>
    <td width="10%"><fo nt size="2">Unit Price</font></td>
    <td width="5%"><fon t size="2">Qty</font></td>
    <td width="15%"><fo nt size="2">Extend ed Price</font></td>
    </tr>
    <tr>
    <td width="10%"><in put type="text" size="20" name="T1"
    value="C07001"> </td>
    <td width="60%"><in put type="text" size="40" name="T1"
    value="3'x18', BROWN, ASD-BRO-07001, oz, Denier, Weave, Grommets every inchs, each @&nbsp;&nbsp;&n bsp;&nbsp;4.97" ></td>
    <td width="10%"><in put type="text" size="8" name="T1"
    value="4.97"></td>
    <td width="5%"><inp ut type="text" size="6" name="T2"
    value="1"></td>
    <td width="15%"><in put type="text" size="20" name="T2"
    value="4.97"></td>
    </tr>
    </table>
    [/code]
    thanks again for your assistance.
    Last edited by Atli; Aug 24 '07, 10:05 PM. Reason: Added [code] tags
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    I have moved this thread to the JavaScript forums, where you are most likely to get answers to this question.

    Please try to select an appropriate forum when you post your questions.

    Moderator

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Take the item, description and price values and put them into hidden input elements before you submit. You could do this as the user checks checkboxes.

      On the second page, the server-side script can take the data and display it on the form.

      Comment

      • txguy
        New Member
        • Aug 2007
        • 22

        #4
        thank you

        could you provide or recommend a server side script to handle this?

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by txguy
          could you provide or recommend a server side script to handle this?
          Well, you have a number of choices: PHP, ASP, JSP, Perl, Coldfusion, etc. It depends on what your web server supports and what you are most comfortable with.

          You will still need some Javascript to deal with the client-side aspect of your problem.

          Comment

          • txguy
            New Member
            • Aug 2007
            • 22

            #6
            I agree ... I originally posted this in the PHP forum, but it got moved to this forum

            PHP runs fine on my web server and that would be a great solution,

            any suggestions???? ??????

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Originally posted by txguy
              I agree ... I originally posted this in the PHP forum, but it got moved to this forum
              The reason why it got moved here was probably because you mentioned Javascript. Can you get the values on the first page using Javascript?

              Comment

              Working...