User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 391,177 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,597 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 7132 | Replies: 3
Reply
Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

IF statement

  #1  
Jul 26th, 2004
After this line of code:
<cfif Password eq #Password# and UserName eq #UserName#>

If this info is right I want to Display a page called GetPictureFromUser. How do I do this?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: Louisiana, US
Posts: 24
Reputation: dazzlindonna is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 3
dazzlindonna's Avatar
dazzlindonna dazzlindonna is offline Offline
Newbie Poster

Re: IF statement

  #2  
Jul 26th, 2004
<cfif Password eq #Password# and UserName eq #UserName#>
<cfinclude template="yourpagetoinclude.cfm">
<cfelse>
<cflocation url="yourloginpage.cfm">
</cfif>
I need to check my ColdFusion Calendar because I think Christmas is coming soon! ;)
***********
Get all the SEO news and tips at SEO Scoop
Reply With Quote  
Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

Re: IF statement

  #3  
Jul 26th, 2004
What is the difference between the template and using the url. The template worked although it displayed the information the same page which I guess is fine. The url displayed a blank page.


<cfoutput Query = "login">
<cfif Password eq #Password# and UserName eq #UserName#>
<cfinclude template="GetPictureFromUser.cfm">
<cfelse>
<cflocation url="SignIn.cfm">
</cfif>
</cfoutput>
Reply With Quote  
Join Date: Jun 2004
Location: Louisiana, US
Posts: 24
Reputation: dazzlindonna is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 3
dazzlindonna's Avatar
dazzlindonna dazzlindonna is offline Offline
Newbie Poster

Re: IF statement

  #4  
Jul 26th, 2004
Just depends how you want to do it - up to you. Either display the info on the same page using cfinclude or send them off to another page using cflocation. Whatever pleases you.
I need to check my ColdFusion Calendar because I think Christmas is coming soon! ;)
***********
Get all the SEO news and tips at SEO Scoop
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ColdFusion Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 7:46 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC