Results 1 to 2 of 2

Thread: Query String

  1. #1

    Thread Starter
    Member davethebrat's Avatar
    Join Date
    Jul 2001
    Location
    Buffalo, NY
    Posts
    51

    Question Query String

    Lets assume I have a web page like this (generic address) someplace.com/index.htm?name=dave&In=Jane

    How do I get the values for NAME and In?

    I am new to JavaScript and I am used to Visual Basic but I dont want to do VBScript on my web site b/c most people have is disabled. Does anyone have a code snippet for this problem?

    ALSO: Please reply if you know of any good (JS) web sites, magizines or books.

  2. #2
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    name=document.URL.split("?name=")[1].split("&")[0];
    in=document.URL.split("&In=")[1];
    if you choose not to decide you still have made a choice!

    RUSH rocks!

Posting Permissions

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



Click Here to Expand Forum to Full Width