Ryan,

In the <option> tag, isn't it supposed to be 

<option value="#i#"  

and not 

<option values="#i#"

Maybe if the tag doesn't have any value assignments per item, it returns the
text.

Duane Ronan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ryan Everhart
Sent: Sunday, November 06, 2005 9:52 AM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] Am I going nuts???

I guess we can't post attachments to the list..
 Here is a link to the screen shot
http://ww2.ryaneverhart.com:8080/code/cfdumpss.jpg
 here is a link ot the code
http://ww2.ryaneverhart.com:8080/code/marker_reminder.txt
 <label>Reminder Date:</label>
<select name="RDateMonth" class="select_xsm">
<option value="1">--</option>
<cfloop index="i" from="1" to="12">
<option values="#i#" <cfif NOT
Compare(#i#,#variables.rdatemonth#)>selected</cfif>>#MonthAsString(i)#</opti
on>
</cfloop>
</select>
&nbsp;
<select name="RDateDay" class="select_xsm">
<option value="1">--</option>
<cfloop index="i" from="1" to="31">
<option value="#i#" <cfif NOT
Compare(#i#,#variables.rdateday#)>selected</cfif>>#i#</option>
</cfloop>
</select>
&nbsp;
<select name="RDateYear" class="select_sm">
<option value="1800">--</option>
<cfset variables.syear = Year(Now())>
<cfset variables.fyear = Year(Now()) + 1>
<cfloop index="i" from="#variables.syear#" to="#variables.fyear#">
<option value="#i#" <cfif NOT
Compare(#i#,#variables.rdateyear#)>selected</cfif>>#i#</option>
</cfloop>
</select>
<br>


 On 11/6/05, Chris Gomez <[EMAIL PROTECTED]> wrote:
>
> the screenshot didn't post. Can you post the code block?
>
> On 11/6/05, Ryan Everhart <[EMAIL PROTECTED]> wrote:
> >
> > Chris,
> > Thanks for your replay and just and FYI on <option value="1">--</option>
> I
> > had this value in there in case a user doesn't select a date, it puts
> > 1/1/1800 in the db and i know to ignore it.
> > Further I took your code and it is still doing the same thing, I have no
> > idea why. I've used this code before on the same site and it works fine.
> > I've been doing this 8 years now and have never seen this. Attached is a
> > screen shot of my cfdump and my code. The issue is on line 87. NO
> IDEA!!!!
> >
> >
> > On 11/6/05, Chris Gomez <[EMAIL PROTECTED]> wrote:
> > >
> > > yes, you're crazy. ;>
> > > the script works fine, although I would remove/change the <option
> > > value="1">--</option> line. it's redundant since you're referencing 1
> in
> > > the
> > > cfloop.
> > > I tested it using the following code.
> > > Hope this helps.
> > > Chris
> > >
> > > <cfparam name="s" default="0">
> > > <cfif s eq 1>
> > > <cfdump var="#RDateMonth#">
> > > <cfexit>
> > > </cfif>
> > >
> > > <cfoutput>
> > > <cfif s eq 0>
> > > <form action="" method="post">
> > > <input type="hidden" name="s" value="1">
> > > <select name="RDateMonth" class="select_xsm">
> > > <cfloop index="i" from="1" to="12">
> > > <option values="#i#">#MonthAsString(i)#</option>
> > > </cfloop>
> > > </select>
> > > <input type="submit">
> > > </form>
> > > </cfif>
> > > </cfoutput>
> > >
> > >
> > > On 11/6/05, Ryan Everhart <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I think i may be going crazy.. I have the following code
> > > > <select name="RDateMonth" class="select_xsm">
> > > > <option value="1">--</option>
> > > > <cfloop index="i" from="1" to="12">
> > > > <option values="#i#">#MonthAsString(i)#</option>
> > > > </cfloop>
> > > > </select>
> > > > Nothingin fancy just a loop going from 1 to 12 and displaying the
> > month
> > > by
> > > > name for the user on the form. However when I sumbmit the form I am
> > > > getting
> > > > the DISPLAY value instead of the true VALUE value. It's returning
> > > > November,
> > > > instead of 11 to the query. It shouldn't do this, what do you see
> > > > something
> > > > wrong?
> > > >
> > > > --
> > > > Ryan Everhart
> > > > [EMAIL PROTECTED]
> > > > _______________________________________________
> > > > List mailing list
> > > > Reply to DFWCFUG:
> > > > [email protected]
> > > > Subscribe/Unsubscribe:
> > > > http://lists1.safesecureweb.com/mailman/listinfo/list
> > > > List Archive:
> > > > http://lists1.safesecureweb.com/mailman/private/list
> > > >
> > > _______________________________________________
> > > List mailing list
> > > Reply to DFWCFUG:
> > > [email protected]
> > > Subscribe/Unsubscribe:
> > > http://lists1.safesecureweb.com/mailman/listinfo/list
> > > List Archive:
> > > http://lists1.safesecureweb.com/mailman/private/list
> > >
> >
> >
> >
> > --
> > Ryan Everhart
> > [EMAIL PROTECTED]
> >
> >
> > _______________________________________________
> > List mailing list
> > Reply to DFWCFUG:
> > [email protected]
> > Subscribe/Unsubscribe:
> > http://lists1.safesecureweb.com/mailman/listinfo/list
> > List Archive:
> > http://lists1.safesecureweb.com/mailman/private/list
> >
> >
> >
> _______________________________________________
> List mailing list
> Reply to DFWCFUG:
> [email protected]
> Subscribe/Unsubscribe:
> http://lists1.safesecureweb.com/mailman/listinfo/list
> List Archive:
> http://lists1.safesecureweb.com/mailman/private/list
>



--
Ryan Everhart
[EMAIL PROTECTED]
_______________________________________________
List mailing list
Reply to DFWCFUG: 
[email protected]
Subscribe/Unsubscribe: 
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archive: 
http://lists1.safesecureweb.com/mailman/private/list




_______________________________________________
List mailing list
Reply to DFWCFUG: 
[email protected]
Subscribe/Unsubscribe: 
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archive: 
http://lists1.safesecureweb.com/mailman/private/list

Reply via email to