> <form action="index3.php" method="post">
> Show picture # (Choose 001-995): <input type="text"
name="billedenummer">
> <input type="submit"> <input type="reset">
> <?php
> $billedenummer = isset($billedenummer)?$billedenummer:"001";
$billedenummer = str_pad($billedenummer, 3, "0", STR_PAD_LEFT);
//Ligegyldigt om brugere skriver 1, 01 eller 001...
> echo "Currently showing: " . $billedenummer;
> ?>
> <br>
> </form>
> <hr>
> <?php
> echo "<img src=\"
http://www.domain.com/the-secret-collection/" .
> $billedenummer . "_general.jpg\"><br>";
$billedenummer = str_pad($billedenummer--, 3, "0", STR_PAD_LEFT);
echo "Tilbage: <a
href=\"
http://www.domain.com/the-secret-collection/index.php?billedenumm
er=".$billedenummer."\"";
$billedenummer = str_pad($billedenummer+2, 3, "0", STR_PAD_LEFT);
echo "Tilbage: <a
href=\"
http://www.domain.com/the-secret-collection/index.php?billedenumm
er=".$billedenummer."\"";
> ?>
--
Jakob Møbjerg Nielsen | "Five exclamation marks, the
jakob@dataloger.dk | sure sign of an insane mind."
| -- Terry Pratchett, Reaper Man