Hey, I'm really new to php and I would like to know how to get the value of a variable "t" from a url that looks like this:
http://www.something.com/index.php3?t=sometext&f=othervariable
this is what I have so far but I get an error message
$a = split ('&', $query_string);
$i = 0;
while ($i < count ($a)) {
$b = split ('=', $a [$i]);
if urldecode ($b[0]) = 't' {
$tempText = urldecode ($b[1]);
}
$i++;
}
the error is:
Parse error: parse error, expecting `'('' in C:....
Thanks a bunch,
Randy