Posted by Jeff on 12/11/05 13:36
php 4.x
I'm developing a website and when the user clicks on a menu the code behind
the website have to update the url with new data... All parameters are in
the url... So I want the parameters in the url copied to an array wich I
update.
However I'm not sure whats the best way to access these parameters add put
them in an array I created.... I want the parameters copied to an array, and
this array should be designed so that I can access every item in the array
directly. for example like this:
$art = $params['articleid'] (the value of item articleid is copied over to
$art)
How should I access these parameters in url and get them placed in an array?
I've looked at $_server['query_string'] and $_server['http_host'] and I'm
NOT sure one of them are the correct one to use...
What do you recommend me to use?
Jeff
Navigation:
[Reply to this message]
|