hm the situation is the following...
i wrote a script, to which i pass the filename of a picture which should be shown in the middle of the page:
<head>
... blablabla ...
</head>
<body>
<?php
if ($argc == 0) exit();
$filename = $argv[0];
if (file_exists($filename))
{
echo "<div align=\"center\"><img src=\"$filename\"><br></div>";
}
?>
</body>
as you can see, i use $argv[0] to get the filename. the script is called by links on my page, for example
<a href="script.php?pics/mypicture.jpg" target="_self">funny picture</a>
ok, everything's clear. but now i also wanted to add the possibility of a second (optional) argument, in which a text is passed, which should be written down under the picture:
echo "<div align=\"center\"><img src=\"$filename\"><br>$additionaltext</div>";
well, it didn't work (and won't work, as i've just learned) with $argv[1] and an url like "script.php?filename.jpg&additionaltext"
so, would it work using "script.php?a=filename.jpg&b=additionaltext"? and would there then be two variables in my script, $a and $b?
help, thanks in advance,
mel