Re: accessing querystring values
| From: | zareef ahmed | Date: | Wed, 22 Sep 2004 03:25:44 +0000 |
| Subject: | Re: accessing querystring values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197512@lists.php.net to get a copy of this message | ||
Hi,
All values passed via query string will be available
via in $_GET array. You can simply get them from this
array.
Example
http://www.example.com/script.php?fname=me&lname=you
then fname and lname will be available as
$fname =$_GET['fname'];
$lname =$_GET['lname'];
BTW it is basic PHP, I think you should read a
inroductry tutorial about PHP.
Additional functions may be usefull in some advanced
level programming. These are parse_url and parse_str
http://www.phpcertification.com/manual.php/function.parse-url.html
http://www.phpcertification.com/manual.php/function.parse-str.html
Zareef Ahmed
--- AMC <aboehme@netgate.net> wrote:
> Hi,
>
> How do you access values sent to a page as part of a
> querystring in php?
>
> ac
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
=====
Zareef Ahmed :: A PHP Developer in Delhi ( India ).
Homepage :: http://www.zasaifi.com/zareef_ahmed.php
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com