Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Well, everyone..
I need help.
I have a in HTML, and I can't seem to figure this out.

HTML
<a href="page.php">Page</a>

That SHOULD take me to page.php, but it just re-directs back to the original page..?

Don't ask me why I'm not just doing
HTML
<a href="page.php">Page</a>
instead of using , because I already have a button within another form, and if I use the link, then it messes up the button link.

Any help is appreciated :)

What I have tried:

HTML
<a href="page.php">Page</a>
Posted
Updated 3-Jan-20 12:43pm
v2
Comments
The Magical Magikarp 2-Jan-20 0:36am    
It's not showing the HTML i used, so just bear with me, okay? :D the space between "using" and "," is < form >
Patrice T 2-Jan-20 0:48am    
Use Improve question to update your question.
So that everyone can pay attention to this information.
Kornfeld Eliyahu Peter 2-Jan-20 3:17am    
It is too little information... You may add a simplified version of you page to show us the exact error...
You see if I add you line of HTML to a page of mine it does redirect to the new page... So it is probably something around the anchor that causes the problem...
ZurdoDev 3-Jan-20 12:40pm    
No way of knowing without seeing more. And what are the chances that the code is actually on the page.php file?

1 solution

I found the solution, I just needed to do this:

<div class="login">
    <h1>Login</h1>
    <form action="authenticate.php" method="post">
        <label for="username">
            class="fas fa-user">
        </label>
        <input type="text" name="username" placeholder="Username" id="username" required>
        <label for="password">
            ^__i class="fas fa-lock">
        </label>
        <input type="password" name="password" placeholder="Password" id="password" required>
        <a href="register.html">Register</a>
        <input type="submit" value="Login">
    </form>
</div>


Hope this helps anyone :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900