Download ejercicio4.php from mrsgradenko/files: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/mrsgradenko/files/resolve/main/ejercicio4.php
- Command line
-
hf download hf://mrsgradenko/files/ejercicio4.php
-
curl -L -o ejercicio4.php https://huggingface.co/mrsgradenko/files/resolve/main/ejercicio4.php
649 Bytes
| <form action="" method="post"> | |
| <label for="nota">Escriba su nota: </label> | |
| <input type="number" name="nota"> | |
| <button type="submit" name=send>Enviar</button> | |
| </form> | |
| if (isset($_POST['send'])) { | |
| $nota = null; | |
| $nota = $_POST["nota"]; | |
| if($nota >= 11){ | |
| echo "Nota invalida."; | |
| } | |
| elseif($nota >= 10){ | |
| echo "Perfecto, tiene $nota"; | |
| } | |
| elseif($nota >= 9){ | |
| echo "Sobresaliente, tiene $nota"; | |
| } | |
| elseif($nota >= 7){ | |
| echo "Notable, tiene $nota"; | |
| } | |
| elseif($nota >= 6){ | |
| echo "Aprobado, tiene $nota"; | |
| } | |
| elseif($nota < 6){ | |
| echo "Reprobado, tiene $nota"; | |
| } | |
| else{ | |
| echo "Dato invalido."; | |
| } | |
| } | |