Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

I did this with the code below, what i am doing wrong

Page 1 of 1

5 Replies - 10902 Views - Last Post: 15 June 2009 - 07:54 AM Rate Topic: -----

#1 nikky  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 09-July 07

Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

Post icon  Posted 10 July 2007 - 08:39 AM

<td nowrap align="right"><div align="left">Date Of Birth:</div></td>
<td><select name="select">
<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="09">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="18">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>
</select>
<select name="select2">
<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>
</select>
<select name="select3">
<option value="1960">1960</option>
<option value="1961">1961</option>
<option value="1962">1962</option>
<option value="1963">1963</option>
</select>&nbsp;</td>
</tr>

Is This A Good Question/Topic? 0
  • +

Replies To: Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

#2 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

Posted 10 July 2007 - 09:35 AM

your problem is not using [code] tags around code segments on the forum.


assuming this is properly contained within <table> tags, and a <tr> at the beginning it works perfectly... this is more of an html question than coldfusion, i would think.
Was This Post Helpful? 0
  • +
  • -

#3 private  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-June 09

Re: Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

Posted 01 June 2009 - 06:46 PM

View Postnikky, on 10 Jul, 2007 - 07:39 AM, said:

<td nowrap align="right"><div align="left">Date Of Birth:</div></td>
<td><select name="select">
<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="09">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="18">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>
</select>
<select name="select2">
<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>
</select>
<select name="select3">
<option value="1960">1960</option>
<option value="1961">1961</option>
<option value="1962">1962</option>
<option value="1963">1963</option>
</select>&nbsp;</td>
</tr>

Was This Post Helpful? 0
  • +
  • -

#4 xheartonfire43x  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 454
  • Joined: 22-December 08

Re: Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

Posted 02 June 2009 - 06:28 AM

View Postnikky, on 10 Jul, 2007 - 07:39 AM, said:

<td nowrap align="right"><div align="left">Date Of Birth:</div></td>
<td><select name="select">
<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="09">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="18">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>
</select>
<select name="select2">
<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>
</select>
<select name="select3">
<option value="1960">1960</option>
<option value="1961">1961</option>
<option value="1962">1962</option>
<option value="1963">1963</option>
</select>&nbsp;</td>
</tr>


There is nothing wrong really, but if you are working with ColdFusion it would be much simpler to do it this way

<tr>
	<td>
		<select name="month">
			<cfloop from="1" to="12" index="i">
				<cfoutput>
					<option value="#i#">#i#</option>
				</cfoutput>
			</cfloop>
		</select>
	</td>
	<td>
		<select name="day">
		 <cfloop from="1" to="31" index="i">
		 	<cfoutput>
				<option value="#i#">#i#</option>
			</cfoutput>
		 </cfloop>
		</select>
	</td>
	<td>
		<select name="year">
			<cfloop from="1960" to="1963" index="i">
				<cfoutput>
					<option value="#i#">#i#</option>
				</cfoutput>
			</cfloop>
		</select>
	</td>
</tr>


Was This Post Helpful? 1
  • +
  • -

#5 armyCoder  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 56
  • Joined: 02-February 09

Re: Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

Posted 15 June 2009 - 07:38 AM

What I don't understand is how this thread has 3400 hits. That's weird, the next closest has less than a thousand.
Was This Post Helpful? 0
  • +
  • -

#6 xheartonfire43x  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 454
  • Joined: 22-December 08

Re: Using Drop Down for Day, Month, Year in CFM eg Date Of Birth

Posted 15 June 2009 - 07:54 AM

View PostarmyCoder, on 15 Jun, 2009 - 06:38 AM, said:

What I don't understand is how this thread has 3400 hits. That's weird, the next closest has less than a thousand.


Thats what they get for developing this site in PHP instead of ColdFusion... faulty number counting.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1