www.webdeveloper.com
Results 1 to 4 of 4

Thread: POST problems

  1. #1
    Join Date
    Oct 2003
    Posts
    39

    POST problems

    Hi everyone

    On my website we aren't using buttons/forms, we are using standard links instead. My question to you is whether anyone knows how to pass on a variable using a standard <a href> link. Can you do something like this:....?
    <a href="http://www.mywebsite.com/good.html?post $variable = "james"
    Does anyone know how to do that?

    Thanks

    james

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    <a href="http://www.mywebsite.com/good.html?firstname=james&amp;lastname=brown">
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,175
    Note that it will be sent via the GET method, not the POST method, if you send it as part of the URL.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Oct 2003
    Posts
    39
    Thanks for your help guys, I managed to work it out last night. It was just a matter of knowing what to put in the address; i.e: www.mysite.com/james.php?office=london

    thanks :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles