Forum Moderators: open
window.open('change.asp?Product_id=' + Product_id + '&form_action=chg','', 'width=400 height=400')
does anybody know, how can I make this if the table has two Primary Keys? I'll appreciate your help.
You're going to need to bake your primary key into the form or click event so that it's passed into your pop window.
window.open('change.asp?Product_id=' + Product_id + '&client=' + Client_ID + '&form_action=chg','', 'width=400 height=400')
Then your query will need to cover the entire key wether your updating or deleting:
update products set something='test' where RC_Number='prodidvaluehere' and Client_ID='clientidvaluehere'
or
delete products where RC_Number='prodidvaluehere' and Client_ID='clientidvaluehere'