Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help creating a value from an array

Status
Not open for further replies.

shawntbanks

Programmer
Oct 29, 2003
48
0
0
CA
hope that someone can help me. I have a shopping cart that is stored in arrays and structers. I have to send to the transaction provider a item string with the details of what was ordered. here is the code, can someone please help


this is the string that the transaction provider needs me to send
<input type=&quot;hidden&quot; name=&quot;orderstring&quot; value=&quot;1~Listing~#session.auth1.Grand_subtotal#~1~Y~||2~GST~#session.auth1.GST#~1~N~||3~Listing~#session.auth1.PST#~1~N~||&quot;>




This is the structer that I would like to take the information from
<CFSET strTempItem = StructNew()>
<cfset strtempitem.Orderid = &quot;#Todays_Date##Todays_time#&quot;>
<cfset strtempitem.submitID = #form.submitID#>
<cfset strtempitem.categoryid = #form.select_Ad_Subcategory#>
<cfset strtempitem.subcategoryid = #form.selectLocal#>
<cfset strtempitem.subcategory = #form.sub#>
<cfset strtempitem.location = #form.location#>
<cfset strtempitem.itemname = #form.Itemname#>
<cfset strtempitem.Short_Description = #form.Short_Description#>
<cfset strtempitem.long_description = #form.long_description#>
<cfset strtempitem.itemprice = #form.itemprice#>
<cfset strtempitem.featured = #form.featured#>
<cfset strtempitem.begindate = #form.begindate#>
<cfset strtempitem.Enddate = (#form.begindate# + #form.Enddate#)>
<CFSET strTempItem.picture1 = &quot;&quot;>
<CFSET strTempItem.picture2 = &quot;&quot;>
<CFSET strTempItem.picture3 = &quot;&quot;>
<CFSET strTempItem.picture4 = &quot;&quot;>



I would imagine that I probably need some kind of javascript.
 
I for one am confused as to what exactly you are asking.
I also don't understand why you need javaScript to mess with your server side data.

thereptilian120x120.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top