0
I use the function below to go to the next question of a question system I have,I could not create this function to go back,someone would have some hint?
Knob:
echo"<button id='button' type='next' name='next' class='btn btn-danger'>
<span class='glyphicon glyphicon-circle-arrow-right'></span>Próxima</button><br />";
Function:
if(isset($_GET['proxima'])){
$pergunta = (int)$_GET['proxima'];
header('location: comportamento.php?nro_pergunta='.$pergunta);
}
And if he wants, he can still check if the referer is from the same site, to enable the button.
– Bacco
@Wallace Maxters , it worked thanks.
– Chefe Druida
@Bacco , worked out thank you.
– Chefe Druida