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 6 of 6
  1. #1
    Banned
    Join Date
    Oct 2003
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I turn this into a link?

    PHP Code:
    <FORM name="USERFAVOUR" method="post" action="{$baseurl}/my_favour.php">
    <
    input type="hidden" name="rvid" value="{$answers[i].VID}">
    <
    input type="submit" name="removfavour" value="Remove Favorite">          </FORM
    I am trying to turn this form button into a link and dont know how. It is calling on my_favour.php to remove something. Please help.

    Thank you.

  • #2
    New Coder
    Join Date
    Jul 2007
    Posts
    56
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Probably because you used the post method.

  • #3
    Banned
    Join Date
    Oct 2003
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So when you use the post method it cant be just a link?

  • #4
    New Coder
    Join Date
    Jul 2007
    Posts
    56
    Thanks
    8
    Thanked 0 Times in 0 Posts
    I don't think so. :S Because posting, Well when you post something on a forum it is sending something to the sites server. So, Post would probably mean posting it to the link.

  • #5
    Banned
    Join Date
    Oct 2003
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That cant be true because you're not posting it to the button. If a button is essentially a link, I cant see why a post button cant be just a link.

  • #6
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    This is a javascript question, not a php one.

    Code:
    <a href="#" onclick="this.form.submit()">Submit form</a>
    I think that's right, not used JS for a long time


  •  

    Posting Permissions

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