Hi Nic, are you trying to pass through the array used to create the select
box along with the selected item?
If so, you need to convert the array into text before you can send it. If I
am off base, please clarify the original problem maybe there is a better way
to solve it.
<cfif isDefined("form.btnSubmit")>
<cfoutput>
#listFindNoCase(form.myArray,form.favBeatle)#<br />
</cfoutput>
</cfif>
<cfscript>
myA = arrayNew(1);
myA[1] = "John";
myA[2] = "Paul";
myA[3] = "George";
myA[4] = "Ringo";
</cfscript>
<cfoutput>
<form action="" method="post">
<input type="hidden" name="myArray" value="#arraytolist(myA)#"><br />
<select name="favBeatle">
<cfloop list="#arraytolist(myA)#" index="name">
<option value="#name#">#name#</option>
</cfloop>
</select>
<input type="submit" name="btnSubmit">
</form>
</cfoutput>
On Mon, Jun 23, 2008 at 7:53 AM, nic olai <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> i want to send data with a post form. In the next step i want to check
> which entry of an array includes the selected data.
>
> For example:
> In the form the user selected the 2nd entry which includes XYZ in an
> dropdown (select) field and submit the form.
> How can i check which entry of the array myarraytest[] includes the data
> XYZ.
>
> Thank you & best regards
> nic.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307954
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4