For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > August 2007 > [PHP-WIN] how to add query string









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [PHP-WIN] how to add query string
Asim

2007-08-25, 4:02 am

Hi

can anyone tell me how to add query string in address bar for next php page


how to explode or seperate it

i need a clear working example?


byue






Asim Jamil - 0092 345 4025907, Pakistan

---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Piotr Pluciennik

2007-08-25, 8:00 am

Hi,

place a html anchor with required parameters in your html or html template file:

....
<a href="phpage.php?param1=value1&param2=value2&param3=value3">link description</a>
....

then invoking above link, in your phpage.php you will get:

value1 accessible via $_GET['param1']
value2 accessible via $_GET['param2']
value3 accessible via $_GET['param3']

for example: echo "Value1 = ".$_GET['param1']; will display value of param1.

HTH, regards
Piotr

Asim <j.asim@yahoo.com> wrote: Hi

can anyone tell me how to add query string in address bar for next php page


how to explode or seperate it

i need a clear working example?


byue






Asim Jamil - 0092 345 4025907, Pakistan

---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com