Hi Wim,
Thank you very much, that did the trick.
You saved me a good bit of wasted time.
How should I be posting to this list if not by email?
Thanks,
John
-----Original Message-----
From: Wim Kerkhoff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 6:13 PM
To: John Sydnor
Cc: [EMAIL PROTECTED]
Subject: Re: Help with Execute - param and passing arrays
Hey John,
I'll reply as I've just finished fighting through learning how to pass scalers and hashes via param. I'd have responded sooner if you hadn't posted in email, though.
I believe you need two pass your @records array by reference.
Pass the parameters:
[-
@records = qw(one two three);
Execute ("display.html", $bgcolor1,$bgcolor2,$textcolor,\@records);
-]
Read the parameters in display.html:
[- ($bgcolor1, $bgcolor2, $textcolor, $records) = @param -]
Now you can use $records as an arrayref:
[$ foreach $record (@$records) $]
print stuff<br>
[$ endforeach $]
Or, convert $records from an arrayref back into an array (ie, now you have two copies in memory):
[- @records = @$records -]
Hope that helps.
Wim
