By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Password Establishment

P: 1
I need help making a fully functional password field. Every time I try to make the code that I have for my log-in page work, it doesn't connect to my website's home page, or an error message. Instead, it just sends me back to the same page. Do you have any advise?

Here is the Source Code for my devastated creation so far:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <html>
  3. <head>
  4. <title> TextPage 101 Login Page </title>
  5. <br/>
  6. <body bgcolor="ultra-violate" text="white">
  7. <link href="StyleSheetTemplate6(Site2005 TextPage101.5Version)" rel="stylesheet" type="text/css" />
  8. <br/>
  9. <center>
  10. <h1> TextPage 101.5 Log-in Page <h1/>
  11. <br/>
  12.  
  13. <h3> If you don't know the password, Contact me Whenever I am 
  14.  
  15.  
  16. available, at (410)-404-3568, between the times of 3:00PM-4:00PM.
  17.  
  18. No hints available at this time.</h3>
  19. <?php
  20.  
  21.  $con = mysql_connect
  22. ("E:\Flash Drive\F.D.OF.E\Web Design\HTML\HTML\Site 2005\Text Page 101.5 Ultra-Violet"
  23. ,"TextPageUser20","OptimusPrime101");
  24.  
  25.  if (!$con)
  26.    {
  27.    die('Could not connect: ' . mysql_error());
  28.  
  29.    }
  30.  
  31. // 
  32.  
  33.  
  34.  
  35. <script type="text/javascript" src="jquery.js">
  36. </script>
  37.  
  38. <script type="text/javascript">
  39.  
  40. $(document).ready(function()
  41. {
  42.   $(":OptimusPrime101").css("background-color","black");
  43. });
  44.  
  45. </script>
  46.  
  47. </head>
  48.  
  49. <body>
  50.  
  51.  
  52.  
  53. <form action="G:\Flash Drive\F.D.OF.E\Web Design\HTML\HTML\Site 2005\Text Page 101.5 Ultra-Violet"
  54.  method="get">
  55.  
  56. Name: <input type="text" name="username" />
  57.  
  58. <br/>
  59.  
  60. Password: <input type="password" name="password" />
  61.  
  62. <br />
  63.  
  64. <br />
  65.  
  66. <input type="reset" value="Reset" />
  67.  
  68. <input type="submit" value="Submit" />
  69.  
  70. <br/>
  71.  
  72. </form>
  73.  
  74.  
  75. </body>
  76.  
  77. </html>
  78.  
  79.  
Jan 8 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.