SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: PHP help

  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <?php include('jokes/<?php echo( "$joke" );?>.html') ?>

    I wrote the above code but it doesn't work. What I'm trying to do is grab the joke variable from the url (www.mydomain.com/page1.php3?joke=001) then post it in the include statement so I can get the right page included.

    I would appreciate greatly any help I can get.

    Thanks

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <?php include "jokes/$joke.html"; ?>
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  3. #3
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much.


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
  •