Re: Accessing URL parameters



"Rik Wasmus" <luiheidsgoeroe@xxxxxxxxxxx> wrote in message
news:op.t37my9gb5bnjuv@xxxxxxxxxxxxxxxx
On Mon, 31 Dec 2007 18:24:28 +0100, Aaron Gray <ang.usenet@xxxxxxxxx>
wrote:

How do I access URL parameters, and ideally as an associative array ?

Many thanks in adance,

Do you want to examine the URL string?
http://www.php.net/parse_url
http://www.php.net/parse_str

Or in the current request, it's offcourse in the $_GET array.

parse_url() looke helpful, but I wanted the current pages URL parameters, is
the $_GET ?

Aaron



.



Relevant Pages

  • Newbie question: removing array reference information
    ... I'm working on a program which reads hyperlinks from a specific web page. ... I read the page in question using regex to ... scan for a particular URL string. ... However, when I read the array, in addition to the ...
    (comp.lang.perl)
  • Re: Newbie question: removing array reference information
    ... > I'm working on a program which reads hyperlinks from a specific web page. ... > scan for a particular URL string. ... However, when I read the array, in addition to the ... > Does anyone have a clue on how I can remove them or avoid them? ...
    (comp.lang.perl)
  • Re: Accessing URL parameters
    ... Do you want to examine the URL string? ... it's offcourse in the $_GET array. ... parse_urllooke helpful, but I wanted the current pages URL parameters, ...
    (comp.lang.php)
  • Re: form method=post --> what are the query parameters in the url ?
    ... body of the request to see if the expected parameters are present. ... Since just about every server that can run a script will make will make the ... to parse the url string. ...
    (alt.html)
  • Re: Accessing URL parameters
    ... Or in the current request, it's offcourse in the $_GET array. ... Rik Wasmus ...
    (comp.lang.php)