SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Mar 18, 2007, 21:07 #1
- 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;
?>
"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.
-
Mar 18, 2007, 22:20 #2
- Join Date
- Dec 2003
- Location
- Federal Way, Washington (USA)
- Posts
- 1,524
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Change this:
Code:if ($sid == test)
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