From login page... Welcome #username#.. problems..

Hi..
I wonder of any of you can help...

I have 3 files... login.cfm, login5.cfm, and checklogin cfm..

The login.cfm is a screen where you put your username and password, press ok and it goes to login5.cfm>>

<cfquery name="check" datasource="jasvasquez-access">
  select * from Users where user_ID = '#form.username#' and password = '#form.password#'
</cfquery>

<cfif check.recordcount is "1">
  <cfoutput query="check">
    <cfset session.loggedin = "true">
  </cfoutput>
  <script language="JavaScript">
     alert( 'You sucessfully logged in ... Please press ok!.');
     self.location="/students/jasocke2/checklogin1.cfm";
  </script>
<cfelse>
  <script language="JavaScript">
    alert( 'Please check your username and password, then try again.');
    self.location="/students/jasocke2/login.cfm";
  </script>
</cfif>

Then you press ok and it directs you to checklogin.cfm>>

<CFIF Session.LoggedIn NEQ "True">
  <CFLOCATION URL="/students/jasocke2/checklogin1.cfm">
</CFIF>
<html>
<head><title>Login</title></head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"></div>
<div align="center">
  <p align="left"><a href="allgigs.cfm">View all Gigs</a></p>
  <p align="left"><a href="addgig.cfm">Add Gig</a></p>
  <p align="left"><a href="update1.cfm">Update Gig</a></p>
  <p align="left"><a href="newsupdate.cfm">Change News</a></p>
    <p align="left"><a href="delete.cfm">Delete a played Gig</a></p>
  <div align="left">
    <p>&nbsp;</p>
    <p><i>.</i> </p>
  </div>
</div>
<div align="left">

</body>
</html>

what I want is pretty simple (I think) although I've tried alsorts and it wont work!!
I want it so when you login it says Welcome (and then the username that you put in on the first screen)...

and ideas?
All I have been getting is username not defied in form!
Thanks in advance...
jasocke2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dgrafxCommented:
OK - Try putting (on your first form action page - where you have the query where user_ID = '#form.username#' and password = '#form.password#')
<cfcookie name="Username" value="#form.Username#">
Then where ever you want put
<cfif isDefined("cookie.Username")>
Welcome #cookie.Username#
</cfif>
0
jasocke2Author Commented:
it's coming up...

Welcome #cookie.Username# ...

where abouts do I put it in the text?

(sorry for sounding stupid!!)
0
dgrafxCommented:
Hi
I guess I don't know what you mean exactly
Are you saying this is exactly how you see it "Welcome #cookie.Username# ..."
If so - you need <cfoutput> tags around it "Welcome <cfoutput>#cookie.Username#</cfoutput> ..."
Let me know if thats not it ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jasocke2Author Commented:
Your a star!
Works a treat!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.