How to obtain several variables from a URL?
Posted: Sat Aug 07, 2010 10:07 am
I'm using links like and the using GET to to obtain whether or not $example has been set by clicking the link and what it has been set as.
An example is:
How I do this for several variables in one link? Have tried googling but can't seem to find the right syntax anywhere. Thanks very much
Code: Select all
href=?example=$example An example is:
Code: Select all
$album = (isset($_GET['album']) ? $_GET['album']:'');
$Array = scandir("gallery");
foreach($Array as $directory){
echo "<a href='?album=$directory'>$directory</a>";
}
?>