Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    41

    Angry Unanswered: A "get" problem...

    I am using this code snipet on a site and it is working perfectly. However, using the same snippet on a different site, on a different server, does not work. Other php commands are working on the page. This is really stressing me out. Here's the code:

    <body>
    <div align="center"><img src="images/large/mlb/<?php print $_GET[picture]?>" width="360" height="360" border="1"></div>
    </body>


    Any ideas? tests I can run?

    Thanks for any help.

    Mark

  2. #2
    Join Date
    Oct 2002
    Location
    Plymouth UK
    Posts
    116
    The shortcut $_GET was introduced in 4.1.0. If one of the sites is running an earlier php version this will fail. Replace the $_GET with the full array name $HTTP_GET_VARS and this should fix the problem. Also picture should be in quotes.

  3. #3
    Join Date
    Feb 2004
    Posts
    41
    Hey, thanks for the help, it solved my problem!

Posting Permissions

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