SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict SniperUK's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Last Time i asked I got this as the final
    code
    <?
    if ($id == "news") {
    include("news.php3");
    } elseif($id== "guest") {
    include("guest.php3");
    }?>
    <A href="index.php3id=guest">guest</A>
    <A href="index.php3?id=news">news</A>

    Know where ever i place that code that where the news.php3 page comes up thats the code between <? and ?> wher ever i place that cod ethat the place the requires page comes up. Know i want to know can i use the requires page to be in .cgi so it would look like

    <?
    if ($id == "news") {
    include("news.cgi");
    } elseif($id== "guestbook") {
    include("guest.cgi");
    }?>
    <A href="index.php3?id=guestbook">guest</A>
    <A href="index.php3?id=news">news</A>

    would this work the same I like this method because I only need one page with all the links where all the other pages are included in the above code.

  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Instead of require("script.cgi"); try virtual("script.cgi");.


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!


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
  •