Robert Chu
09-20-2005, 10:46 AM
Dear Sir,
I want to transfer a parameter in header function. The two php files are as following. But I get some error messages.
Fatal error: Function name must be a string in C:\Program Files\Apache Group\Apache2\htdocs\test2.php on line 2
test.php:
<?php
header("Location:test2.php?id='1'");
?>
test2.php
<?php
$id = $_GET('id');
echo $id;
?>
I want to transfer a parameter in header function. The two php files are as following. But I get some error messages.
Fatal error: Function name must be a string in C:\Program Files\Apache Group\Apache2\htdocs\test2.php on line 2
test.php:
<?php
header("Location:test2.php?id='1'");
?>
test2.php
<?php
$id = $_GET('id');
echo $id;
?>