variables from headers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
geeshan
Forum Newbie
Posts: 10
Joined: Fri Mar 24, 2006 12:02 am

variables from headers

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the $_GET superglobal.

Code: Select all

var_dump($_GET);
geeshan
Forum Newbie
Posts: 10
Joined: Fri Mar 24, 2006 12:02 am

Post by geeshan »

Thanks

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

Rgds
Geeshan
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm not here to do the work for you. Read up on how arrays work.

http://php.net/language.types.array
geeshan
Forum Newbie
Posts: 10
Joined: Fri Mar 24, 2006 12:02 am

Reply

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you've already been given an answer in your other thread. :roll:
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Reply

Post 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
Post Reply