vendredi 12 mars 2021

Is there a way to redirect in php only if a variable meets a specific condition?

I have something like

Is this possible?

if(this works){
echo "this works";
header( "refresh:5;url=wherever.php" );
}else{
echo "it didnt work";
header( "refresh:5;url=somewhereelse.php" );
}

Aucun commentaire:

Enregistrer un commentaire