Webbserverprogrammering 1

Show sourcecode

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

webbserverprogrammering/exercises/

classes/
cookies/
form_uppgift/
hejsvejs.php
ovn_db/
ovn_fr1.php
ovn_fr2.php
ovn_fr3.php
ovn_fr4.php
ovn_fr5.php
ovn_fr6.php
ovn_fr7.php
ovn_fr8.php
ovn_gr7.php
ovn_in1.php
ovn_in2/
ovn_ts/

ovn_fr1.php

23 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Övning formulär 1</title>
</head>
<body>
    <form action="" method="POST">
        <input type="text" name="namn" id="namn-input">
        <button type="submit">Skicka</button>
    </form>


    <?php 
        
if (!empty($_POST["namn"])) {
            
?> 
            Hjärtligt välkommen <?php echo $_POST['namn']; ?>
            <?php
        
}
    
?>
</body>
</html>