Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/

formular.php
formular_uppgift.php
funktioner.php
grunder.php
hejsvejs.php
include.php
index.php
svar.php

formular.php

31 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <title>Formulär</title>

    
    <style>
        body {
            text-align: center;
            font-family: Arial, Helvetica, sans-serif;
        }
    </style>
</head>
<body>
    
    <h1>Formulär</h1>

    <h2>1.</h2>

    <form action="svar.php" method="POST">
        <label for="namn">Ange ditt namn:</label>
        <input type="text" id="namn" name="anvandarnamn" required>
        <button type="submit">Skicka</button>
    </form>

    
    <h2>2.</h2>

</body>
</html>