+ 1
Help me finish this PHP code, I want to make a website where users can collect xp (experience levels) by pressing th ebutton
<html> <head> </head> <title> </title> <body> <?php // help me with the php code please ?> <h2>Earned Xps: <span id="exp">0</span></h2> <img src="logo1.jpg" width="150" height="150" style="border: 1px black" alt="Microsoft logo"> <p> Guess The Logo above</p> <form method="post"> <input type="text" name="xp" /><br><br> <input type="submit" /><!--every time they press the submit button i want their xp to increase by 0.10 --> </form> </body> </html>
1 Odpowiedź
0
No one will gonna code for you, but i can provide you a idea how to do that
=>Take input in variable compare with the result (in if condition)
If its true then run database query to retrieve xp and add .10
If its false then show wrong input