SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $_GET question, having some problems.

    I'm currently trying to test something out so I wrote this real quick but I'm having problems with getting it to work. My code is:

    PHP Code:
    <?php
    $campaign 
    $_GET['campaign'];
    $name $_GET['name'];
    $rate $_GET['rate'];
    $sid $_GET['sid'];
    $status $_GET['status'];

    if (
    $sid == test)
    echo 
    $name;
    ?>
    and in the address bar I'm putting in
    "http://www.money4shop.com/credit.php?campaign=xxx&name=True.com&rate=xxx&sid=test&status=xxx"

    and I keep getting the error "Fatal error: Call to undefined function: array() in /home/gtdott14/public_html/credit.php on line 2"

    I've tried using paranthesis and that didn't work either. I orginally thought it was parenthesis but then I looked online and it shows brackets.
    Owner of Money4Shop
    http://www.money4shop.com
    Join in and get paid!

  2. #2
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change this:

    Code:
    if ($sid == test)
    to this:

    Code:
    if ($sid == "test")
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web


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
  •