Re: Reading url values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In message <000601c775a9$a6dde030$6400a8c0@sixs1>, SIXS <sixs@xxxxxxx>
writes
>HI,
>I am able to pass values to the URL as this shows.
>I can get the id value and select data from mysql, but I cannot access the ln 
>value
>I have use various combos and acannot get it to read the ln value and display it 
>\What am I doing or not doing? I have used get, post and result
>$id=$_GET[id];
>$ln=$_POST[ln];
>echo $_RESULT[ln]
>
>http://localhost/ep/usa/showcheat.php?id=1&?ln=Smiley
>
>Thanks for any help
>Jim


I think that someone has already pointed out that the URL is wrong - it
should be
http://localhost/ep/usa/showcheat.php?id=1&ln=Smiley
there should only be one '?'

If your data is being passed in the command line, it should be 
$id=$_GET[id];
$ln=$_GET[ln];

GET would (normally) be used if you were getting information from a URL

POST would (normally) be used if you were getting information from a
FORM.

-- 
Pete Clark

Sunny Andalucia
http://www.hotcosta.com/comm_1.htm

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux