I've been trying out arrays recently, and this is my coding:
<?php
$data = array('autoguide1'=>'car',
'baz'=>'boom',
'scotland'=>'haggis',
'php'=>'hypertext processor');
echo http_build_query($data); // autoguide1=car&baz=boom&scotland=haggis&php=hypertext+processor
echo http_build_query($data, '', '&'); // foo=bar&baz=boom&cow=milk&php=hypertext+processor
?>
What I want to try and do is make my PHP code run so that I can include a file from another page on my site, e.g.
http://mysitehere-localhost.com/testing.php?yourpage&scotland=haggis
and depending on the URL it will take the array and use the generated query string.
Thanks.