![]() |
| ||
| IF statement 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? |
| ||
| Re: IF statement <cfif Password eq #Password# and UserName eq #UserName#> <cfinclude template="yourpagetoinclude.cfm"> <cfelse> <cflocation url="yourloginpage.cfm"> </cfif> |
| ||
| 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> |
| ||
| 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. |
| All times are GMT -4. The time now is 11:32 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC