Dynamic pages
Results 1 to 3 of 3

Thread: Dynamic pages

  1. #1
    Member
    Join Date
    Dec 2005
    Posts
    51

    Dynamic pages

    hi
    im using dynamic pages for my website everything is working great but i ran into a problem i have add this webcam script that will let people record and save there video it will also generate a link for them to view the video my problem is because it is generating a link the link is not in my dynamic pages script is there anyway to get this to work with dynamic pages ? thanks...

    dynamic pages scrip im using:
    PHP Code:
    index.php

    include_once("include/config.php"); 
    $q $_GET['id'];
    switch(
    $q) {
    case 
    'signup':
    $page_title="Sign Up";
    define("BODY_TEXT","$q.php");
    break;
    define("BODY_TEXT","index.php");
    break;
    }
    require(
    BASPATH TEMPLATE .'index.php');

    config.php

    define
    ("BASPATH","include/");
    define("PAGE","pages/");
    define("TEMPLATE","template/");
    $menu = array( "index" => "Home",
    "signup" => "Sign Up",
    $seo="true";
    if (
    $seo=="true"){
    $seo="";
    }else{
    $seo="index.php?id=";

    Urls:
    PHP Code:
    (my urls look like this:)

    index.php?id=about 
    index
    .php?id=contact etc..
    --------------------------------------------------
    (
    video script urls look like this:)

    videodisplay.php?msgID=Jon181020&uName=Jon
    videodisplay
    .php?msgID=Kim181020&uName=Kim etc..
    ---------------------------------------------------
    (
    want them to look like this to match the rest of my site with the index.php?id=:)

    index.php?id=?msgID=Jon181020&uName=Jon 
    index
    .php?id=?msgID=Kim181020&uName=Kim etc.. 

  2. #2
    Senior Member
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    753
    You can't have more than one ? in your URL, that will just cause you a lot of problems. If you want everything to run through your index.php file, then you'll need to either add in the code from the videodisplay.php file to your index.php and work out what is what so nothing breaks, or use something like rewrite_mod in an .htaccess file to rewrite your URLs as you need.
    Ashley Sheridan
    www.ashleysheridan.co.uk

  3. #3
    Senior Member anoopmail's Avatar
    Join Date
    May 2005
    Location
    Hell
    Posts
    241
    You could do it by htaccess rules

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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