Submit form using GET

Discussion in 'PHP' started by SA101, Jul 27, 2009.

  1. #1
    I have a PHP form (http://bit.ly/9O6h7) using POST which I have designed into a page with no submit button, instead I have images for each package. How can I create a GET function to make a link out of the first form which will be used for the images?
     
    SA101, Jul 27, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    use <INPUT TYPE="IMAGE"> for using images as submit buttons. Please don't use the GET method as this is not very handy!.

    More information can be found about using images as submit buttons using google!
     
    EricBruggema, Jul 29, 2009 IP
  3. zandigo

    zandigo Greenhorn

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Well advised to use POST.

    However, you can do GET as follow if you still want.

    <a href="form.php?name=xxx&pass=bbbb&id=cccc"><img src='img'></a>
     
    zandigo, Jul 29, 2009 IP
  4. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #4
    Its not good for security to use GET!

    Lots of documents writen why you should use POST method for forms and why not using GET method! :)
     
    EricBruggema, Jul 30, 2009 IP