Is there any special recipe I'm missing in order to get select and checkboxes 
to work with cfform?

Here's what I have.


<table width="100%" border="0"><CFform action="#CGI.SCRIPT_NAME#" method="post" 
name="baby_picture_upload" ENCTYPE = "multipart/form-data" 
scriptsrc="../../../cfide/scripts/">
<tr>
<td width="36%" align="right">Your First Name:</td>
                     <td width="64%"><cfinput name="first_name" required="yes" 
message="First Name is Required." validateat="onsubmit" type="text" 
class="formfield" id="first_name"></td>
    </tr>
<CFQUERY name="get_states" datasource="#datasource#">
select *
   from dbo.tbl_states
   order by stateAbbrev ASC
</CFQUERY>
<tr>
  <td align="right">Last Name:</td>
  <td><cfinput name="last_name" required="yes" message="Last Name is required." 
validateat="onsubmit" type="text" class="formfield" id="last_name"></td>
</tr>
<tr>
  <td align="right">City</td>
  <td><cfinput name="city" required="yes" message="City is required." 
validateat="onsubmit" type="text" class="formfield" id="city">
    State:
    <cfselect name="state" query="get_states" value="stateAbbrev" 
display="stateAbbrev" required="yes" message="State is require" size="1">
        <option value="" selected="selected">ST</option>
    </cfselect>
 </td>
</tr>
<tr>
<td align="right">Email:</td>
                <td><cfinput name="email" required="yes" message="A valid email 
address is required." validate="email" validateat="onsubmit" type="text" 
class="formfield" id="email" ></td>
    </tr>
<tr>
<td align="right">Child's First Name:</td>
                     <td><cfinput name="babys_name" required="yes" 
message="Child's First Name is Required." validateat="onsubmit" type="text" 
class="formfield" id="babys_name"></td>
    </tr>
<tr>
<td align="right">Child's Birthday:</td>
                <td><!--- MONTH --->
                  <cfselect name="birthmonth" required="yes"  message="The 
Month value of the Birthday is required.">
                    <option value="">MM</option>
                    <option value="01">01</option>
                    <option value="02">02</option>
                    <option value="03">03</option>
                    <option value="04">04</option>
                    <option value="05">05</option>
                    <option value="06">06</option>
                    <option value="07">07</option>
                    <option value="08">08</option>
                    <option value="09">09</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                  </cfselect>
                  <!--- DAY --->
                  <cfselect name="birthday" required="yes" message="The Day 
value of the birthday is required.">
                    <option>DD</option>
                    <option value="01">01</option>
                    <option value="02">02</option>
                    <option value="03">03</option>
                    <option value="04">04</option>
                    <option value="05">05</option>
                    <option value="06">06</option>
                    <option value="07">07</option>
                    <option value="08">08</option>
                    <option value="09">09</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                    <option value="13">13</option>
                    <option value="14">14</option>
                    <option value="15">15</option>
                    <option value="16">16</option>
                    <option value="17">17</option>
                    <option value="17">18</option>
                    <option value="19">19</option>
                    <option value="20">20</option>
                    <option value="21">21</option>
                    <option value="22">22</option>
                    <option value="23">23</option>
                    <option value="24">24</option>
                    <option value="25">25</option>
                    <option value="26">26</option>
                    <option value="27">27</option>
                    <option value="28">28</option>
                    <option value="29">29</option>
                    <option value="30">30</option>
                    <option value="31">31</option>
                  </cfselect>
<!--- YEAR --->
<cfselect name="birthyear" required="yes" message="The Year value of the 
birthday is required.">
  <option>YYYY</option>
  <option value="2003">2003</option>
  <option value="2004">2004</option>
  <option value="2005">2005</option>
  <option value="2006">2006</option>
</cfselect></td>
    </tr>
<tr>
<td align="right">Child's age in picture:</td>
                <td><cfselect name="babyspictureage" required="yes" 
message="Child's age in picture is required">
<option value="" selected="selected">Select Age</option>
<option value="9">9 Months</option>
<option value="2">10 Months</option>
<option value="2">11 Months</option>
<option value="2">12 Months</option>
<option value="2">13 Months</option>
<option value="2">14 Months</option>
<option value="2">15 Months</option>
<option value="2">16 Months</option>
<option value="2">17 Months</option>
<option value="2">18 Months</option>
<option value="2">19 Months</option>
<option value="3">20 Months</option>
<option value="3">21 Months</option>
<option value="3">22 Months</option>
<option value="3">23 Months</option>
<option value="3">24 Months</option>
                </cfselect></td>
    </tr>
<tr>
  <td align="right">Are you the legal 
    guardian of this child? </td>
  <td><label>
    <cfinput name="gaurdian" required="yes" message="You must be the child's 
guardian." type="radio" value="1">
    yes</label>
</td>
</tr>
<tr>
<td align="right">Upload Your Little One's Photo: </td>
                <td><cfinput type="file" name="babypicture" required="yes" 
message="Child's Picture is required." >
                  <!--- <CF_FILEINPUT NAME = "babypicture" REQUIRED = "yes" 
PASSVALUE = "no"
  VALIDEXTENSIONS = "jpg"> --->
<!--- <input name="babypicture" type="file" class="formfield" id="babypicture"> 
--->
<!--- <input type="file" name="babypicture" 
      tmt:pattern="filepath_jpg" 
      tmt:message="Please select a .jpg file. Max width 150px. Min width 100px. 
Max height 125px. Min height 175px. Max file size is 450kb" 
      tmt:image="true" 
      tmt:imagemaxwidth="150" 
      tmt:imageminwidth="125" 
      tmt:imagemaxheight="175" 
      tmt:imageminheight="150" 
      tmt:imagemaxsize="450"
      /> --->
<!--- <input name="babypicture" type="file" class="formfield" id="babypicture"> 
---></td>
              </tr>
<tr>
<td align="right"><cfinput type="checkbox" required="yes" message="You must 
agree to the reuse before uploading the image." name="agree2reuse" 
value="1"></td>
                     <td>I agree to give xyz company permission to reuse this 
photo on the companname website.</td>
    </tr>
<tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>
  <td>&nbsp;</td>
  <td><input name="babypicgogo" type="hidden" id="babypicgogo" value="yes">
      <input name="Submit" type="submit" value="Submit">  </td>
   <!--- 
onClick="MM_validateForm('first_name','','R','last_name','','R','city','','R','email','','RisEmail','babys_name','','R');return
 document.MM_returnValue" value="Submit" --->
</tr>
</cfform>
</table>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263736
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to