This code you did, does not build an array. Even though the arguments show as "PList[10,3]", but it is NOT an array. So to display, if you have 3 rows and 3 columns, you could:

<@for start=1 stop=3>
<@assign local$thisrow <@currow>>
<@for start=1 stop=3>
<@assign local$thiscol <@currow>>
PLIST[<@var local$thiscol>,<@var local$thisrow>]: <@arg plist[<@var local$thiscol>,<@var local$thisrow>]><br>
</@for>
</@for>

If you want to make an array from a form, I believe you can ONLY make a one dimensional array. Try this:

<input name="plist" type=hidden value="value1">
<input name="plist" type=hidden value="value2">
<input name="plist" type=hidden value="value3">
<input name="plist" type=hidden value="value4">
<input name="plist" type=hidden value="value5">
<input name="plist" type=hidden value="value6">
<input name="plist" type=hidden value="value6">

Then on receiving page, do this:

<@assign local$mynewplistarray <@arg plist type=array>>

<@var local$mynewplistarray>

If you want multidimension, you have to build it from one dimensional argument arrays.

-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Mar 23, 2006, at 7:52 AM, Fogelson, Steve wrote:

Hi,

 

I thought with the following code I could create an array called PList of arguments to pass to the next page

 

<form name="SubmitPage" method="post" action="">"<@var request$NonSslUrl encoding=meta>Shopper/fastorder.taf?_function=update">

<input name="PList[<@currow>,1]" type="hidden" value="<@var request$ProdList[<@currow>,P_ID]>">

<input name="PList[<@currow>,2]" type="hidden" value="<@var request$ProdList[<@currow>,OV_ID]>">

<input name="PList[<@currow>,3]" type="text" size="4" maxlength="4">

 

Debug reveals

START /Shopper/fastorder.taf Witango_Server_5.5 _function=update PList[1,1]=599 PList[1,2]=8022 PList[1,3]=1 PList[10,1]=600 PList[10,2]=10047 PList[10,3]= PList[11,1]=600 PList[11,2]=10048 PList[11,3]= PList[12,1]=600 PList[12,2]=10045 PList[12,3]= PList[2,1]=599 PList[2,2]=8023 PList[2,3]=2 PList[3,1]=599 PList[3,2]=2095 PList[3,3]=3 PList[4,1]=599 PList[4,2]=2096 PList[4,3]=4 PList[5,1]=601 PList[5,2]=2111 PList[5,3]= PList[6,1]=598 PList[6,2]=10037 PList[6,3]= PList[7,1]=598 PList[7,2]=10038 PList[7,3]= PList[8,1]=600 PList[8,2]=10044 PList[8,3]= PList[9,1]=600 PList[9,2]=10046 PList[9,3]= Total Length of Postargs: 751

 

But this code on the subsequent page

PList (Rows): <@varinfo "<@arg PList>" rows><br>

PList:<@arg PList>

 

Displays the following

PList (Rows):
PList:

 

What am I doing wrong? I prefer not to use a user scoped array if at all possible.

 

Thanks

 

Steve Fogelson

Internet Commerce Solutions

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to