<?php
$n = $_GET['nr'] +1;
if ($_GET['nr'] == 1 || $_GET['nr'] == 12 )
echo '<form action="" method="POST">
<input type="image" name="next" class="but1" class="submit" /></div>
</form>';
else {
echo '<form action="" method="POST">
<input type="image" name="next" alt="n" class="but1" class="submit" /></div>
</form>
<form action="" method="POST">
<input type="image" name="back" alt="n" class="but2" class="submit" /></div>
</form>
';
}
if ($_POST['next']) {
I teraz problem jak wrzucić ten $n do hrefa powiedzmy że mam index.php?nr=1, a po naciśnięciu na button uzyskał w linku index.php?nr=2 i tak dalej...
Zastanawiam się jak to wykonać... jakieś pomysły
