I inherited a PERl/PHP(and I am not familiar with) site and am getting an error when looking for a querystring value.
the original HREF is like:
and the code on the recieving page is:
I don't know where "$HTTP_GET_VARS[]" lives so I am trying to capture the artist_id value from the querystring using:
and I get:
Parse error: parse error, unexpected ',' in artist_frame.php on line 4
if I go with:
I get:
Parse error: parse error, unexpected '=' in artist_frame.php on line 4
What am I doing wrong? I tried declaring the variables and that didn't help either...Is their something server side that I need to set or include?
the original HREF is like:
Code:
<A class=listLink
href="artist_frame.shtml?artist_id=10"
target=cag_content>Artist 10</A>
Code:
$id = $HTTP_GET_VARS['artist_id'];
I don't know where "$HTTP_GET_VARS[]" lives so I am trying to capture the artist_id value from the querystring using:
Code:
($key, $id) = split(/=/,$ENV{'QUERY_STRING'},2);
#since there is only one variable
and I get:
Parse error: parse error, unexpected ',' in artist_frame.php on line 4
if I go with:
Code:
@vals = split(/=/,$ENV{'QUERY_STRING'});
Parse error: parse error, unexpected '=' in artist_frame.php on line 4
What am I doing wrong? I tried declaring the variables and that didn't help either...Is their something server side that I need to set or include?