here is the code maybe someone on here might be able to help.
Code: Select all
if(isset($_POST['battles']))
{
$_SESSION['npcid'] = $npcid;
}
echo"<form method='post' action='fight.php'>
<input type='submit' name='battles' value='fight' >
</form>";I did add session start because like I said it doesn't work only when i add that button click...
If anyone has any ideas to what's wrong with this small code please help me because i really am lost.
Thank you.