IF statement

Reply

Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

IF statement

 
0
  #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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 29
Reputation: dazzlindonna is an unknown quantity at this point 
Solved Threads: 3
dazzlindonna's Avatar
dazzlindonna dazzlindonna is offline Offline
Light Poster

Re: IF statement

 
0
  #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 Quick reply to this message  
Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

Re: IF statement

 
0
  #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 Quick reply to this message  
Join Date: Jun 2004
Posts: 29
Reputation: dazzlindonna is an unknown quantity at this point 
Solved Threads: 3
dazzlindonna's Avatar
dazzlindonna dazzlindonna is offline Offline
Light Poster

Re: IF statement

 
0
  #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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC