Page 1 of 1

variables from headers

Posted: Sat Mar 25, 2006 12:09 am
by geeshan
how do I get the variable value if I wrote the code like this,

href ="content.php?ID=5>

I tried to get the value of ID from my content.php in many ways, but failed.
Can you please help me in this

Posted: Sat Mar 25, 2006 12:12 am
by feyd
the $_GET superglobal.

Code: Select all

var_dump($_GET);

Posted: Sat Mar 25, 2006 12:30 am
by geeshan
Thanks

But Stil I got the Prob.
Can U please show me a bit of coding

Rgds
Geeshan

Posted: Sat Mar 25, 2006 12:33 am
by feyd
I'm not here to do the work for you. Read up on how arrays work.

http://php.net/language.types.array

Reply

Posted: Sat Mar 25, 2006 1:04 am
by geeshan
Not All the work.
But I only need is the code, which read the header value.
I think it is a single line.
I have read the array but failed.
Can U please show me a single line.

Rgds
Geeshan

Posted: Sat Mar 25, 2006 1:08 am
by feyd
you've already been given an answer in your other thread. :roll:

Re: Reply

Posted: Sat Mar 25, 2006 1:27 am
by alex.barylski
geeshan wrote:Not All the work.
But I only need is the code
, which read the header value.
I think it is a single line.
I have read the array but failed.
Can U please show me a single line.

Rgds
Geeshan
ROFLMFAO :lol: :lol: :lol:

Thats classic...I'm gonna make that my signature... :P