943,480 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 10578
  • ColdFusion RSS
Jul 26th, 2004
0

IF statement

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cfnut is offline Offline
8 posts
since Jul 2004
Jul 26th, 2004
0

Re: IF statement

<cfif Password eq #Password# and UserName eq #UserName#>
<cfinclude template="yourpagetoinclude.cfm">
<cfelse>
<cflocation url="yourloginpage.cfm">
</cfif>
Reputation Points: 10
Solved Threads: 3
Light Poster
dazzlindonna is offline Offline
29 posts
since Jun 2004
Jul 26th, 2004
0

Re: IF statement

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>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cfnut is offline Offline
8 posts
since Jul 2004
Jul 26th, 2004
0

Re: IF statement

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.
Reputation Points: 10
Solved Threads: 3
Light Poster
dazzlindonna is offline Offline
29 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Registration form help
Next Thread in ColdFusion Forum Timeline: Need Help with login authentication





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC