I have built a template where customers can make last second edits to their checkout info. The shopping cart items info is held in a session structure, everything else (billing info, shipping info, etc) is passed as form variables. On the edit page i include a table that views the current products in the cart and offers the ability to add or delete from the product quatities (with plus and minus buttons that subit to the same page) - it works great back on the original template it is used on (before the checkout process). Now i cant even get to the page without an error. The cause seems to be the bunch of extra hidden fields i needed to add to the form. When I comment them out, i can get to the edit page without an error BUT i need them in so that the variables are passed.
Could some one give me some insight into what is happening here? Below i have included the error message and then the form along with the hidden fields that seem to be causing the problem commented out (note - the error occurs at attempts to get at the session structure that occur after the hidden fields). Thanks for any help:
===================error message=================
The member "" in dimension 1 of object "session.cart" cannot be found. Please, modify the member name.
The error occurred while evaluating the expression:
#session.cart[2]#
The error occurred while processing an element with a general identifier of (#session.cart[2]#), occupying document position (123:69) to (123:88).
==================code===========================
<td><font face="arial" size=3>#session.cart[4]#</font></td>
<form method="post" action="checkout_edit.cfm">
<input type="hidden" name="upper" value="up">
<input type="hidden" name="name" value="#session.cart[2]#">
<input type="hidden" name="id" value="#session.cart[1]#">
<input type="hidden" name="price" value="#session.cart[3]#">
<input type="hidden" name="weight" value="#session.cart[5]#">
<input type="hidden" name="quantity" value="1">
<!---<input type="hidden" name="cardtype" value="#form.cardtype#">
<input type="hidden" name="cardname" value="#form.cardname#">
<input type="hidden" name="x_Card_Num" value="#form.x_Card_Num#">
<input type="hidden" name="x_Exp_Date" value="#form.x_Exp_Date#">
<input type="hidden" name="totwship" value="#form.totwship#">
<input type="hidden" name="total" value="#form.total#">
<input type="hidden" name="shipcost" value="#form.shipcost#">
<input type="hidden" name="shipping" value="#form.shipping#">
<input type="hidden" name="cartweight" value="#form.cartweight#">
<input type="hidden" name="giftwrapOn" value="#form.giftwrapOn#">
<input type="hidden" name="giftTexton" value="#form.giftTexton#">
<cfif isDefined("form.giftwrapOn" AND form.giftwrapOn EQ "yes">
<input type="hidden" name="giftStyle" value="#form.giftStyle#">
</cfif>
<cfif isDefined("form.giftTexton" AND form.giftTexton EQ "yes">
<input type="hidden" name="giftText" value="#form.giftText#">
</cfif>
<cfloop list="#dbfields#" index="i">
<input type="hidden" name="#i#" value="#evaluate(i)#">
</cfloop>
<cfloop list="#dbfields2#" index="i">
<input type="hidden" name="#i#" value="#evaluate(i)#">
</cfloop>--->
Could some one give me some insight into what is happening here? Below i have included the error message and then the form along with the hidden fields that seem to be causing the problem commented out (note - the error occurs at attempts to get at the session structure that occur after the hidden fields). Thanks for any help:
===================error message=================
The member "" in dimension 1 of object "session.cart" cannot be found. Please, modify the member name.
The error occurred while evaluating the expression:
#session.cart[2]#
The error occurred while processing an element with a general identifier of (#session.cart[2]#), occupying document position (123:69) to (123:88).
==================code===========================
<td><font face="arial" size=3>#session.cart[4]#</font></td>
<form method="post" action="checkout_edit.cfm">
<input type="hidden" name="upper" value="up">
<input type="hidden" name="name" value="#session.cart[2]#">
<input type="hidden" name="id" value="#session.cart[1]#">
<input type="hidden" name="price" value="#session.cart[3]#">
<input type="hidden" name="weight" value="#session.cart[5]#">
<input type="hidden" name="quantity" value="1">
<!---<input type="hidden" name="cardtype" value="#form.cardtype#">
<input type="hidden" name="cardname" value="#form.cardname#">
<input type="hidden" name="x_Card_Num" value="#form.x_Card_Num#">
<input type="hidden" name="x_Exp_Date" value="#form.x_Exp_Date#">
<input type="hidden" name="totwship" value="#form.totwship#">
<input type="hidden" name="total" value="#form.total#">
<input type="hidden" name="shipcost" value="#form.shipcost#">
<input type="hidden" name="shipping" value="#form.shipping#">
<input type="hidden" name="cartweight" value="#form.cartweight#">
<input type="hidden" name="giftwrapOn" value="#form.giftwrapOn#">
<input type="hidden" name="giftTexton" value="#form.giftTexton#">
<cfif isDefined("form.giftwrapOn" AND form.giftwrapOn EQ "yes">
<input type="hidden" name="giftStyle" value="#form.giftStyle#">
</cfif>
<cfif isDefined("form.giftTexton" AND form.giftTexton EQ "yes">
<input type="hidden" name="giftText" value="#form.giftText#">
</cfif>
<cfloop list="#dbfields#" index="i">
<input type="hidden" name="#i#" value="#evaluate(i)#">
</cfloop>
<cfloop list="#dbfields2#" index="i">
<input type="hidden" name="#i#" value="#evaluate(i)#">
</cfloop>--->