Originally Posted by kpmr
in order to make payment page work i need to provide this product id on cart page and then post that id to payment page.
<input type="text" id="product_id1" value="0033456"/>
Ummm...I don't think so.
An <input> field with only an ID will *NOT* be posted to ANY page.
Only fields with *NAMES* are ever sent by HTML to another page.
It would be okay for the form to have both and ID and a name:
<input type="text" id="product_id1" name="product_id1"/>
But without the name
the payment page will never see that field.
FURTHER: It is illegal to have an ID repeated on a page, so *CLEARLY* you can not possibly have both
You need to show us what is *ACTUALLY* on your page. What you showed can't possibly ever work.
please note that there can one or more <div> product_id. e.g. if user adds one product then there will be only one input. if user adds three products then there will be three input in form.
So *ARE* there serveral <div>s? each with a different ID?
If so, what *ARE* the different IDs?
And do the multiple <input> fields already exist? Or is the code supposed to automatically create them?
Philip has answered part of your question, but the question as you gave it is impossible. So if you really want help you need to show us your ACTUAL HTML CODE. All the <div>s. All the <input>s.