Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS "Forgot password" code problem!

NiallM1974

Active Coder
When I click Forgot password I get "http://wwww.srtcmembers-beta.com/#". How can I make the link work on my login page?

Please see line of code and attached screenshot

HTML:
<div class="a"> <p>Forgot <a href="http://wwww.srtcmembers-beta.com/reset-password.htm">Password</a></p></div>
 

Attachments

  • srtc-forgot-password.jpg
    srtc-forgot-password.jpg
    156.8 KB · Views: 3
Last edited by a moderator:
Solution
I got it fixed. It was due to an old file and had to rename a few files but it's working now except for login button which I am unable to click as there seems to be a problem with the code.

HTML:
<input type="button" name="log" id="log" value="Login">
HTML:
<!DOCTYPE html>

<html> 

<head>   
    <title>Member's Login Area</title>     
    <meta charset="utf-8">
    
    <style>
        Body {
            background: url(/images/srtc-graph.jpg);
            font-family: Arial, Helvetica, sans-serif;
            margin: 0;
            padding: 0;
        }
        .login { 
            width: 382px; 
            overflow: hidden; 
            margin: auto; 
            margin: 20 0 0 450px; 
            padding: 80px; 
            background: white; 
            border-radius: 15px ;
            border-style: solid;
            border-color: gray;
            border-width: 0.2px;       
        }
        h2{ 
            text-align: center; 
            font-size: 30px;
            color: navy; 
            padding: 20px; 
        }   
        label{ 
            color: black; 
            font-size: 15px;
            margin-left: 25px;
        } 
        #Uname{ 
            width: 300px; 
            height: 30px; 
            border: grey;
            border-color: black;
            border-style: solid;
            border-width: 0.5px;
            border-radius: 2px; 
            padding-left: 8px; 
            margin-left: 30px;
        } 
        #Pass{ 
            width: 300px; 
            height: 30px; 
            border: grey;
            border-color: black;
            border-style: solid;
            border-width: 0.5px;
            border-radius: 2px; 
            padding-left: 8px; 
            margin-left: 30px;
              
        } 
        #log{ 
            width: 312px; 
            height: 30px; 
            border-style: solid;
            border: black; 
            border-radius: 17px; 
            padding-left: 7px;
            background-color: black;
            color: white; 
            margin-left: 30px;
        }
        #log:hover{
            background-color: navy;
            cursor: pointer;
        }
        #check{
            width: 15px; 
            height: 15px; 
            border-style: solid;
            border: black;
            margin-left: 30px;
        }
        div.a {
            text-indent: 30px;
        }
    </style>
</head>   

<body>   

    <h2>SRTC Member's Login Area!</h2><br>   
    <div class="login">   
        <form id="login" method="get" action="login.php">   
            <label><b>Username:     
            </b>   
            </label>   
            <input type="text" name="Uname" id="Uname" placeholder="" required>   
            <br><br>   
            <label><b>Password:     
            </b>   
            </label>   
            <input type="password" name="Pass" id="Pass" placeholder="" required>   
            <br><br>   
            <input type="submit" name="log" id="log" value="Login" />
            <br><br>   
            <input type="checkbox" id="check">   
            <span>Remember me</span>
            <div class="a"><p>Forgot <a href="reset-password.htm">Password</a></p></div>
        </form> 
    </div>   
</body> 
 
</html>
 

New Threads

Buy us a coffee!

Back
Top Bottom