How To: Submit Forms using Query Strings?

Discussion in 'PHP' started by amitash, Apr 6, 2011.

  1. #1
    I have a form like this to submit a url. How can I use Query Strings to submit this form from another page with a hyperlink like http://www.amitash.com/Amitash/links/create?url="URL GOES HERE"

    
    <form action="http://www.amitash.com/links/create" method="post" id="link-details-form" class="standard-form">
    <input type="text" name="link-url" id="link-url" value="">
    <input type="submit" value="Save Link →" name="save">
    </form>
    
    HTML:

     
    amitash, Apr 6, 2011 IP
  2. codeartist

    codeartist Peon

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    why dont you change the method="post" to method="get" that should work
     
    codeartist, Apr 6, 2011 IP