Results 1 to 5 of 5

Thread: url reconstruction

  1. #1
    Join Date
    Oct 2006
    Posts
    92
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default url reconstruction

    what about a url reconstruction for example

    on my website there is a SL Gallery section
    Code:
    http://www.mehokahrimanovic.com/gallery/index
    now when someone clicks on that section i can have a shorter address like

    Code:
    http://www.mehokahrimanovic.com/gallery=?page1
    is that possible with an xhtml and css based design
    Last edited by Mehok; 01-23-2008 at 02:25 PM.

  2. #2
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    you could change it to:

    Code:
    http://www.mehokahrimanovic.com/?p=gallery
    or
    Code:
    http://www.mehokahrimanovic.com/?p=gallery&page=1
    but you would need to use PHP.

    Read this: http://www.dynamicdrive.com/forums/s...d.php?p=125609

  3. #3
    Join Date
    Oct 2006
    Posts
    92
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    The Problem with that is that my website is alreaddy made in XHTML and CSS it would take time is there another solution
    Last edited by Mehok; 01-23-2008 at 04:10 PM.

  4. #4
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    You can still carry on using XHTML and CSS.

    PHP is a server-side language that just outputs standard HTML!

    The idea behind ?p=gallery&page=2 is that you are sending information to the next page to use.

    If you use the above on the end of your url you are just sending some simple instructions to the next page e.g.

    p = gallery

    page = 2

    Then the next page would use that information e.g.

    IF p = gallery - "Display this content"
    IF p = somethingelse - "display some other content"

    Definatly worth learning if you've got the time!
    http://www.w3schools.com/php
    Don't know of any other way myself.

  5. #5
    Join Date
    Oct 2006
    Posts
    92
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    ok i will try it when i have time

    thanks

Bookmarks

Posting Permissions

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