As the title says, here is the code :
<?php
$lvl=1;
$xp=0;
if ($xp <50)
{
echo $lvl ;
};
if ($xp >51)
{
echo $lvl+1;
}
return $lvl;
if ($xp >101)
{
echo $lvl+1;
};
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Xp : <input name="xp" type="text" />
<input type="submit" name="add" />
</form>
The script will not post my lvl after i introduce xp.
When i tested the script i allready have show 1. And i didnt even insert my xp.
Where i did wrong or what is missing.
P.S. im new to php please be gentle.