I have a page that has a simple HTML form:
<cfform action="r_global_search_wo
rkers.cfm"
method="post" name="search" id="search">
Inside this form, I have an IFRAME:
<iframe allowtransparency="true" height="150" frameborder="0" marginheight="0" marginwidth="0" name="citystate" id="citystate" src="cities.cfm" scrolling="no" width="100%">
cities.cfm has two more form fields:
<form name="DropDown" method="post">
<!--- query DB for the first drop down list --->
*** query ***
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50"> </td>
<td valign="top"><strong><u>St
ate</u></s
trong></td
>
<td valign="top">
<select name="select_Main_Group" required="yes" multiple="multiple" style="width:150px;" size="10" onchange="this.form.submit
()">
<option value="">Select State</option>
<cfloop query="get_Main_Group">
<option value="#StateCode#" <cfif isDefined('form.select_Mai
n_Group') AND listfind(form.select_Main_
Group, StateCode)>selected</cfif>
>#State#</
option>
</cfloop>
</select>
</td>
<td valign="top"><strong><u>Ci
ty</u></st
rong></td>
<td valign="top">
<cfif isDefined('page.select_Mai
n_Group')>
*** query ***
<select name="select_Sub_Group" required="yes" multiple="multiple" style="width:150px;" size="10">
<option value="">Select City</option>
<cfloop query="get_Sub_Group">
<option value="#City#">#City#</opt
ion>
</cfloop>
</select>
<cfelse>
<select name="select_Sub_Group" required="yes" multiple="multiple" style="width:150px;" size="10">
</select>
</cfif>
</td>
</tr>
</table>
<p>
</form>
I need any values selected from select_Main_Group and select_Sub_Group to be included when the submit button is hit on the parent page.
MAny thanks in advance!
Start Free Trial