Upgraded to PHP5 ... passing variables not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Charlton-Thomson

    Upgraded to PHP5 ... passing variables not working

    I'm really struggling here ... my site works on the basis of <A
    HREF="index.php ?folder=x&page= y"

    In PHP 4 index.php had the line ...

    include $folder . "/" . $y . ".php";

    Which was fine but doesn't work in PHP5. I have tried to correct it as per
    the documentation but am struggling ... can someone help me?

    Thanks,

    Paul.


  • Paul Charlton-Thomson

    #2
    Re: Upgraded to PHP5 ... passing variables not working

    correction the line in PHP4 that worked was ...

    include $folder . "/" . $page . ".php";

    ;-)


    "Paul Charlton-Thomson" <paul@charlto n-thomson.com> wrote in message
    news:d8knul$kk7 $1@nwrdmz01.dmz .ncs.ea.ibs-infra.bt.com...[color=blue]
    > I'm really struggling here ... my site works on the basis of <A
    > HREF="index.php ?folder=x&page= y"
    >
    > In PHP 4 index.php had the line ...
    >
    > include $folder . "/" . $y . ".php";
    >
    > Which was fine but doesn't work in PHP5. I have tried to correct it as per
    > the documentation but am struggling ... can someone help me?
    >
    > Thanks,
    >
    > Paul.
    >
    >[/color]


    Comment

    • Gordon Burditt

      #3
      Re: Upgraded to PHP5 ... passing variables not working

      >I'm really struggling here ... my site works on the basis of <A[color=blue]
      >HREF="index.ph p?folder=x&page =y"
      >
      >In PHP 4 index.php had the line ...
      >
      >include $folder . "/" . $y . ".php";
      >
      >Which was fine but doesn't work in PHP5. I have tried to correct it as per
      >the documentation but am struggling ... can someone help me?[/color]

      $_GET['folder'], not $folder
      $_GET['page'], not $page

      Gordon L. Burditt

      Comment

      Working...