#1
  1. PHPer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Location
    La La Land
    Posts
    145
    Rep Power
    14

    URL-passed variables with Javascript?


    I guess the title pretty well says it all:
    Is it possible to pass variables in a URL string with Javascript similar to the way you can with any server-side script (PHP, CGI, etc)?
    if (!$broke) {
    dontFixIt();
    }
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    Passing is easy - you either append them with a GET form submission, or attach them directly (string concatenation) to the url. Parsing them out is a little trickier:

    http://www.faqts.com/knowledge_base/view.phtml/aid/969

IMN logo majestic logo threadwatch logo seochat tools logo