Hi, I am having a problem with deleting a row from an Array. The problem is that I have a button which is a hyperlink and when the user clicks on the button it should display the row corresponding in the array. However it seems that the code is running when the user does not click on the button it is executing the code regardless. the code is as follows: The delete=rowcount displays the index number such as 1, 2 etc. The OnClick would then run the following code to delete that Array Element. But what is happening is that when the user selects items the Array seems to be getting overwritten meaning that the Array just holds one row. When I then press the delete button the array is empty which is what is expected The rest of the code works fine it is just this small piece of code where the difficulty lies. Any suggestions appreciated.
<TD align=right width=70> <A
href="checkout.cfm?delete=#rowCount#" onclick="#ArrayDeleteAt(session.basket,rowCount)#"target=mainFrame>
<IMG border=0 height=28 name=Image2 src="checkout_files/remove.gif"
width=67></TD></TR>
<TD align=right width=70> <A
href="checkout.cfm?delete=#rowCount#" onclick="#ArrayDeleteAt(session.basket,rowCount)#"target=mainFrame>
<IMG border=0 height=28 name=Image2 src="checkout_files/remove.gif"
width=67></TD></TR>