daily pastebin goal
13%
SHARE
TWEET

sorin

a guest Feb 19th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top