I need to pass the ID of a button to a variable when the button is click so that I can store it as a Session Variable and pass it to a page.
Now what initally did was used the recordset and a select SQL statement to pass the "Order No" to a Session Variable when the button was clicked.
The order No is have I display the details on the "view details" page, not until I tried to test viewing another order which had a different order no did I realise that no matter what I do it will pass the last entered Order No from the record set to the Session Variable hence only ever going to show one Order No.
I thought the best way would be to "onClick" get the ID of the button pressed and since the buttons id's are created in the table using the order no's so "button_<%order no variable%>" I could just capture the id of the button clicked, truncate the final digit(s) and pass them to a session variable?
Is this doable or have I made a completely complicated issue out of something that is simple.
var chrome= "width=600,"