Posted by John on 10/02/05 17:50
On Sun, 2 Oct 2005 10:48:30 -0400, "Fifou"
<NOSPAM_fr_chapelle@hotmail.com> wrote:
>Hi,
>
>I wrote the following php script :
>
><? echo $myvar; ?>
>
>
>then i open IE and i give the adress :
>http://localhost/Myscript.php?myvar=test
>
>
>This returns the following error :
>Notice: Undefined variable: myvar in c:\program
>files\easyphp1-8\www\test.php on line 3
>
>I thought that "myvar" should be known by the script because i send it
>through the URL. But it does not work. Do you know why ?
>
>Thanks a lot for your help
Try
echo $_GET['myvar']
--
John
Navigation:
[Reply to this message]
|