Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/formulär/

ovn_form1.php
ovn_form2.php
ovn_form3.php
ovn_form4.php
ovn_form5.php
ovn_form6.php
ovn_form7.php
ovn_form7res.php
ovn_form8.php

ovn_form1.php

24 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Formulär 1</title>
</head>
<body>  

  <?php
    
if (isset($_POST["skickat"]) && $_POST["skickat"]!="") {
      
$mottaget $_POST["skickat"];
      echo 
"Hjärtligt välkommen ".$mottaget
    }
  
?>

  <form method="post" action="">
      Namn: <input type="text" name="skickat">
    <input type="submit" value="Skicka">
  </form>

</body>
</html>