Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

Webserver1/Ovningar/Strings/

ovning_strings1.php
ovning_strings1_mot.php
ovning_strings2.php
ovning_strings2_mot.php
ovning_strings3.php
ovning_strings3_mot.php
ovning_strings4.php
ovning_strings4_mot.php
ovning_strings5.php
ovning_strings5_mot.php
ovning_strings6.php
ovning_strings6_mot.php

ovning_strings3_mot.php

20 lines ASCII Windows (CRLF)
  <?php
  $tal1 
$_GET["tal1"];
  
$tal2 $_GET["tal2"];

  echo 
"
    <!DOCTYPE html>
    <html lang='sv'>
    <head>
      <meta charset='UTF-8'>
      <meta name='viewport' content='width=device-width, initial-scale=1.0'>
      <title>Hej... igen</title>
    </head>
    <body>"
;
  
  echo 
"tal 1: $tal1 <br>";
  echo 
"tal 2: $tal2 <br>";
  echo 
"kvot: " round($tal1 $tal22);
  
?>
</body>
</html>