Hi,
Here's my problem, I've got a login page, in which when you login, you are
presented with your specific details that you filled out etc...
Now, the problem is, if I just put in whatever text for the login and the
password (obviously not stored in the database under that persons entry)
instead of getting an error, I get the output page but just no details. Not
something I want to have happen.
Here's what I have for code;
I need a way to check and see if the form entry is being checked against the
database entry.
<cfif LoginName IS NOT LoginName>
You are attempting to gain access into a restricted area.
</cfif>
<cfif Password IS NOT Password>
You are attempting to gain access into a restricted area.
</cfif>
<cfif Password IS Password AND LoginName IS LoginName>
<CFQUERY DATASOURCE = "GradTrack" Name="GradDetails">
SELECT LoginName,
Password,
Name,
Birthday,
Age,
PictureName,
StreetAddress,
City,
Country,
Phone,
Email,
WebSite,
Question2,
Question3,
Question4,
Question7,
Question8,
Question9,
Question10,
Question11,
Question12,
Question13,
Question14,
Question15,
Question16,
Question17,
GeneralComments,
EmailList,
ICQ
FROM Grad94
WHERE (LoginName='#LoginName#' AND Password='#Password#')
</cfquery>
and of course, the HTML goes below here for the output etc...and its closed
off with the </CFIF> tag (not put in, just to save space), so the process
works however it'll process anything for a login but just won't output
anything when the login and password is wrong.
Mark Smeets/stranger0/ICQ #1062196
"Mr. West, not every situation requires your patented approach of shoot
first, shoot later, shoot some more and then when everybody's dead try to
ask a question or two" - Wild Wild West
Other Press Webslinger *New and Improved*
http://otherpress.douglas.bc.ca/
Official Splitting Adam Homepage
http://www.splittingadam.com/
Over the Wall Productions and Web Designs
http://www.solarcourt.com/
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.