Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to add a hyperlink in a form?

    Hello all, I have a form that looks like this:
    PHP Code:
    <form><a href="here.html"><click here</a>
    </
    form
    The hyperlink does not work/show up at all. Could someone help me out?

    Thanks!

  • #2
    Regular Coder
    Join Date
    May 2006
    Posts
    290
    Thanks
    6
    Thanked 14 Times in 14 Posts
    You have an extra "<" before the words click here. Remove it.

    It should look like this:

    Code:
    <form><a href="here.html">click here</a></form>
    -trigger
    Last edited by trigger_tre; 10-27-2006 at 07:58 PM.

  • #3
    Regular Coder
    Join Date
    Dec 2002
    Location
    Minneapolis, MN
    Posts
    208
    Thanks
    0
    Thanked 1 Time in 1 Post
    instead of <click here, you need to replace your < sign with &lt;

    so...

    Code:
    <form><a href="here.html">&lt;click here</a>
    </form>
    anthony

  • #4
    Regular Coder
    Join Date
    May 2006
    Posts
    290
    Thanks
    6
    Thanked 14 Times in 14 Posts
    I could be wrong but I think he wants it to say click here not <click here

    -trigger

  • #5
    Regular Coder
    Join Date
    Dec 2002
    Location
    Minneapolis, MN
    Posts
    208
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by trigger_tre View Post
    I could be wrong but I think he wants it to say click here not <click here

    -trigger
    I can't assume anything with him, because he has an entire form just to display a link.
    anthony

  • #6
    Regular Coder
    Join Date
    Mar 2006
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just need a link for click here in a <form>. This might make more since.

  • #7
    Regular Coder
    Join Date
    May 2006
    Posts
    290
    Thanks
    6
    Thanked 14 Times in 14 Posts
    I can't assume anything with him, because he has an entire form just to display a link.

  • #8
    Regular Coder
    Join Date
    Mar 2006
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <form id="login"><br /><br /><br /><br />
    		Username: <input type="text" name="user" /><br />
    		Password: <input type="password" name="password" /><br />
    		<input type="submit" value="Submit" name="Submit" /><br />
     
    </form>
    Here is my form how would i put a hyperlink in the form?

  • #9
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 Posts
    Quote Originally Posted by Cheeseboy View Post
    Here is my form how would i put a hyperlink in the form?
    You would add a hyperlink in the same manner as you would without the form.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •