Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
AdonaiEchad #1
Making automatic Good morning, Good afternoon usingcfif, cfelseif, cfelse and cfset
Does anyone know how to make a <cfif> and so forth tags where lets say when
someone clicks on a page it says Good afternoon depending on the time or Good
monring or even Good evening. I know it deals with cfif and cfelseif and
cfelse but I really do not know how to place the logic which I assume you will
be using cfset tag. Does anyone know how to do this? Thank you, AdonaiEchad
AdonaiEchad Guest
-
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you
Respected Sir, In case you have not noticed it, this is a group that interacts about a programming language called Lisp. I completely understand... -
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you
<RonGrossi382872@yahoo.com> wrote in message news:1114393703.900419.199790@f14g2000cwb.googlegroups.com... This is the most important question of... -
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you
Ron Grossi wrote: Yes. I declared bankruptcy in January before the law changed. Oh, you can't get to heaven in a Cadillac car, 'cause a... -
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you
The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you... -
Xcart no good, support no good, need good shopping cart!!!
I need a good quality php shopping cart to port to my site, allowing software downloads and book sales. Integrating ease is really important and... -
Paul Whitham TMM #2
Re: Making automatic Good morning, Good afternoon using cfif, cfelseif, cfelse and cfset
This script will work however writing it in CF means that you will be
returning the server time and not the persons local time.
<cfset Testhour = DatePart("h",now())>
<cfif Testhour lt 12>
<cfset Greeting = "Good Morning">
<cfelseIF Testhour lt 18>
<cfset Greeting = "Good Afternoon">
<cfelse>
<cfset Greeting = "Good Evening">
</cfif>
</cfif>
<cfoutput>#Greeting#</cfoutput>
To return that value of the localtime you need to use javascript. There is
an example here [url]http://javascript.internet.com/calendars/daily-greeting.html[/url]
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"AdonaiEchad" <webforumsuser@macromedia.com> wrote in message
news:d31ted$ogs$1@forums.macromedia.com...when> Does anyone know how to make a <cfif> and so forth tags where lets sayGood> someone clicks on a page it says Good afternoon depending on the time orwill> monring or even Good evening. I know it deals with cfif and cfelseif and
> cfelse but I really do not know how to place the logic which I assume youAdonaiEchad> be using cfset tag. Does anyone know how to do this? Thank you,>
Paul Whitham TMM Guest



Reply With Quote

