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
variables from headers
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
the $_GET superglobal.
Code: Select all
var_dump($_GET);- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I'm not here to do the work for you. Read up on how arrays work.
http://php.net/language.types.array
http://php.net/language.types.array
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Reply
ROFLMFAOgeeshan 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
Thats classic...I'm gonna make that my signature...