Advertisement
Guest User

sorin

a guest
Feb 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2. <form action="bilet4.php" method="POST">
  3. <input type="textbox" name="Nume" placeholder="Nume"/>
  4. <input type="textbox" name="Prenume" placeholder="Prenume"/>
  5. <input type="textbox" name="Nota1" placeholder="Nota1"/>
  6. <input type="textbox" name="Nota2" placeholder="Nota2"/>
  7. <input type="submit" name="submit" value="Submit"/>
  8. </form>
  9. <?php
  10. echo "<table border=\"1\">";
  11. echo "<tr><th>Nume</th><th>Prenume</th><th>Nota1</th><th>Nota2</th></tr>";
  12. if(count($_POST)>0){
  13. $nota1 = $_POST['Nota1'];
  14. $nota2 = $_POST['Nota2'];
  15. echo $_POST['Nume'];
  16. echo $_POST['Prenume'];
  17. echo ($nota1+$nota2/2);
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement