Hi everybody
I am populating an array of structures with info for a product enquiry.
<!--- ADD PRODUCT TO CART ARRAY ROUTINE--->
<cfif IsDefined("btn_add")>
<a href="%5C">
<cfset temp = arrayAppend(session.enquirycontents, structNew())>
<cfset session.enquirycontents[arrayLen(session.enquirycontents)].ID = #form.ID#>
<cfset session.enquirycontents[arrayLen(session.enquirycontents)].product = #productdetail.product#>
<cfset session.enquirycontents[arrayLen(session.enquirycontents)].prodnum = #productdetail.prodnum#>
<cfset session.enquirycontents[arrayLen(session.enquirycontents)].quantity = #form.Quantity#>
<cfset session.enquirycontents[arrayLen(session.enquirycontents)].dimensions = #productdetail.dimensions#>
<cflocation url="enquiryContents.cfm">
</a>
</cfif>
<!---FINISH ADDING TO CART ARRAY ROUTINE
<!---FINISH ADDING TO CART ARRAY ROUTINE
as i add each product i want to check that a product has not allready been entered (ID doesnt exist)
i have tried all sorts of searches on the web but cant get someting simple like (ipe)does this new id already exist in the array and if so go to error page
Any help with this would be greatly appreciated
cheers and thanks in advance
Grabit
Thanks to you all