User Tools

Site Tools


appunti4s:pagina_dinamica
programmaget.php
<html>
  <head>
    <title> Pagina di output </title>
  </head>
 
  <body>
 
    <h1> Output </h1>
    <h2> Data del server </h2>
    <p>
 
      <?php
      echo date('Y-m-d') ."\n";
      ?>
    </p>
 
    <h2> Ora del server </h2>
    <p>
      <?php
      echo date('h:i:s A') ."\n";
      ?>
    </p>
 
    <p> Il server aspettava le seguenti variabili, nelle quali sono stati inseriti i seguenti valori: 
    </p>
 
    <?php 
      $varutente = $_GET['varutente'];
      $varpw = $_GET['varpw'];
      $var = $_GET['var'];
      $vartempo = $_GET['vartempo'];
      $varfelice = $_GET['varfelice'];
    ?>
 
    <table border=1>
      <tr>
        <th>$varutente</th>
        <th>$varpw</th>
        <th>$var</th>
        <th>$vartempo</th>
        <th>$varfelice</th>
      </tr>
      <tr>
 
    <?php
      echo "<td>".$varutente."</td>\n";
      echo "<td>".$varpw."</td>\n";
      echo "<td>".$var."</td>\n";
      echo "<td>".$vartempo."</td>\n";
      echo "<td>".$varfelice."</td>\n";
    ?>
 
      </tr>
    </table>
 
  </body>
 
</html>
appunti4s/pagina_dinamica.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1