0
I am creating a browser RPG game where the player registers first and race and then is redirected to a page where he chooses the class. By clicking the Ubmit button, the race and race status are saved in the BD and the player should be redirected then the problem is that when I click to register the race, the page updates but the user data is not sent to the BD, only when I hit F5 is the data sent and I am redirected to the next page. Does anyone know why it happens?
if ($numPers == 1) {
header("location:cadastrarclasse.php");
}elseif($numPers > 1){
header("location:taverna.php");
}
else{
This code is above the head. The Else is in case the user has not registered anything yet, then it is on the page to register race.
Well friend you need to put an excerpt of the code where you think the problem is. So it gets hard to help.
– Atila Silva
My problem is just not knowing where is the error ashuuasuashuas. I put the part where the pages are redirected to help understand the logic.
– Anderson S. Passos
In this case post a larger amount of lines.
– Valdeir Psr