Making a "Site/Skin" changer help.

Discussion in 'PHP' started by blueparukia, Aug 7, 2007.

  1. #1
    I am going into partnership with a friend for a business, and we both made very good sites to put on the net. Is there anyway to switch between the sites?

    Say we have a dropdown box on index.php. When you choose a theme it redirects to index.php?theme1.

    With "theme 1" actually being another HTML page in another directory....


    Thanks,

    BP
     
    blueparukia, Aug 7, 2007 IP
  2. mhuggins

    mhuggins Peon

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use the include/include_once() or require/require_once() function to display another HTML file. Just make sure you validate the filename selected from the SELECT box, otherwise visitors could provide a custom filename to the script to view files they shouldn't.
     
    mhuggins, Aug 8, 2007 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    I don't know PHP
     
    blueparukia, Aug 8, 2007 IP