Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question making links with index?...

    Hey guys!!!

    I need some help in making links like:

    http://mysite.com/index/0-2?partners

    http://mysite.com/index/0-2?feedback

    http://mysite.com/index/0-2?about

    this is just an example, i want to get to know how this stuff is made.

    I'm using a CMS system called uCoz, u can check it out at http://ucoz.com or http://ucoz.ru (the latter is for people u stand russian)

    so I have made a page like http://mysite.com/index/0-2, how to make those ?friends and etc.

    btw, i'd like to point it out, that my CMS system does not support php and others, just html, javascript

    thx in advance, u'll really greatly help me if u give a piece worthful advice and some tips on making this)

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,553
    Thanks
    78
    Thanked 4,382 Times in 4,347 Posts
    Are you asking how to *READ* the stuff after the question mark??

    That's pretty easy:
    Code:
    var afterQuestionMark = location.search.substring(1);
    (location.search is the part of the URL that starts at the question mark)

    Now, as to what you *do* with that string...that's up to you.


  •  

    Posting Permissions

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