dimanche 5 juillet 2015

php lotto/lucky draw feedback

Pastebin code view

Hei, i make a php script, who draw 6 numbers random. I input another 6 number and compare with random number, if random is equal to input number, you win. I am newbie in php, starting to learn about 1 week ago, work to learn. What i do wrong and what i do good? Is difficult to understant if i do good or if i do wrong without feedback. Thanks!!

$name = htmlspecialchars($_POST["nume"]);
$rn1 = htmlspecialchars($_POST["nr1"]);
$rn2 = htmlspecialchars($_POST["nr2"]);
$rn3 = htmlspecialchars($_POST["nr3"]);
$rn4 = htmlspecialchars($_POST["nr4"]);
$rn5 = htmlspecialchars($_POST["nr5"]);
$rn6 = htmlspecialchars($_POST["nr6"]);




Aucun commentaire:

Enregistrer un commentaire