help with coldfusion forms

Reply

Join Date: Feb 2007
Posts: 20
Reputation: muddpigeon is an unknown quantity at this point 
Solved Threads: 0
muddpigeon muddpigeon is offline Offline
Newbie Poster

help with coldfusion forms

 
0
  #1
Feb 29th, 2008
i have a problem with this page and neither me or my lecutrer can spot it.
all i want it to do is display the details of the person who has just logged in.
can any one help??


  1. <cfquery name="GetStudent" datasource="2ndHandBooks">
  2. SELECT * FROM students WHERE matno = #Form.MatNo# AND Password = #Form.password# </cfquery>
  3. <cfif GetStudent.RecordCount gt 0>
  4. <!--- Store the user id in session --->
  5. <cfset Session.matno = GetStudent.>
  6.  
  7. <html>
  8. <head>
  9. <title>2ndHandBooks&reg</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  11.  
  12. </head>
  13.  
  14. <body bgcolor="#666666" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
  15. <div id="Layer1" style="position:absolute; left:23px; top:63px; width:1000px; height:600px; z-index:1; background-color: #000000; layer-background-color: 000000; border: 1px none #000000; ">
  16. <div id="Layer6" style="position:absolute; left:283px; top:47px; width:300px; height:1252px; z-index:7"><font size="1" face="Tahoma, Courier, Courier New, Lucida Console, Lucida Handwriting, Lucida Sans Typewriter, Lucida Sans Unicode">
  17. <strong><font size="2"> </font></strong></font>
  18. <font face="Tahoma, Courier, Courier New, Lucida Console, Lucida Handwriting, Lucida Sans Typewriter, Lucida Sans Unicode">
  19.  
  20. </font>
  21.  
  22. <p><font size="2"><strong><font face="Tahoma, Courier, Courier New, Lucida Console, Lucida Handwriting, Lucida Sans Typewriter, Lucida Sans Unicode"><br>
  23.  
  24. <h1>Welcome to your account!</h1>
  25. <p><cfoutput>#Session.username#</cfoutput>
  26. </font></strong></font> </p>
  27. </div>
  28. </div>
  29. <div id="Layer2" style="position:absolute; left:124px; top:24px; width:189px; height:30px; z-index:2; background-color: #000000; layer-background-color: #006699; border: 1px none #000000;"></div>
  30. <div id="Layer3" style="position:absolute; left:142px; top:28px; width:160px; height:21px; z-index:3"><strong><font color="#FFFFFF" face="Tahoma, Courier, Courier New, Lucida Console, Lucida Handwriting, Lucida Sans Typewriter, Lucida Sans Unicode">2ndhandbooks&reg; </font></strong></div>
  31. <div id="Layer5" style="position:absolute; left:764px; top:100px; width:100px; height:169px; z-index:4"> <font color="#FFFFFF" face="Tahoma, Courier, Courier New, Lucida Console, Lucida Handwriting, Lucida Sans Typewriter, Lucida Sans Unicode">
  32. <div id="nav_m">
  33. <ul>
  34.  
  35. <li><a href="home.cfm" class="active">Home</a></li>
  36.  
  37. <li><a href="AboutUs.cfm">About us</a></li>
  38.  
  39. <li><a href="Registration.cfm">Register</a></li>
  40.  
  41. <li><a href="news.cfm">News</a></li>
  42.  
  43. <li><a href="Books.cfm">Books</a></li>
  44.  
  45. <li><a href="contact.cfm">Contact</a></li>
  46. </ul>
  47. </div>
  48.  
  49. </form>
  50.  
  51.  
  52. </div>
  53. <div id="Layer7" style="position:absolute; left:623px; top:39px; width:600px; height:16px; z-index:6"><font color="#006699" size="1" face="Tahoma, Courier, Courier New, Lucida Console, Lucida Handwriting, Lucida Sans Typewriter, Lucida Sans Unicode"><strong>
  54. </strong></font></div>
  55. <div id="Layer4" style="position:absolute; left:51px; top:90px; width:215px; height:401px; z-index:5"><img src="images/rowofbooks.jpg" alt="BOOKS" width="209" height="398" border="2"></a></div>
  56. </body>
  57. </html>
  58. <cfelse>
  59. <!--- User does not exist --->
  60. <cflocation url=".cfm"> </cfif>
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 60
Reputation: hinde is an unknown quantity at this point 
Solved Threads: 4
hinde hinde is offline Offline
Junior Poster in Training

Re: help with coldfusion forms

 
0
  #2
Mar 1st, 2008
What type of issue are you experiencing? Are you getting a coldfusion error? If so post a cfdump of the error with a stacktrace (can be deprecated if you want, but leave the line numbers).
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the ColdFusion Forum


Views: 1492 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ColdFusion
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC