The source-code:
<body>
<form class="gwd-form-fuxb" action="skriv_ut_navn.php" method="get">
<p class="gwd-p-cqn2">Name:</p>
<p class="gwd-p-14oy">Phone:</p>
<p class="gwd-p-aozs">Email:</p>
<input class="gwd-input-1xp1" type="text" name="dittnavn">
<input class="gwd-input-j0y8" type="submit" value="Submit">
<input class="gwd-input-13yo" type="text" name="tlf" id="tlf">
<input class="gwd-input-1qm4" type="text" name="epost" id="epost">
<h2 class="gwd-h1-1kv7">Input your data:</h2>
</form>
</body>
Then, finally the php:
<html>
<head>
<meta charset="UTF-8">
<style>
table {
border-collapse:collapse;
}
table,td,th {
border: 1px solid black;
text-align:center;
}
td {
background-color:yellow;
}
thead {
background-color:cyan;
}
</style>
</head>
<body>
<?php
$navn=$_GET['dittnavn'];
$tlf=$_GET['tlf'];
$epost=$_GET['epost'];
echo "<h1>Her kommer data om deg:</H1>";
echo "<p><strong>Navn: </strong> $navn</p> ";
echo "<p><strong>Telefonnummer: </strong> $tlf</p> ";
echo "<p><strong>Epost: </strong> $epost</p> ";
echo "<table>";
echo "<thead>";
echo "<th colspan='3'>Dine opplysninger:</th>";
echo "<tr>";
echo "<th>Navn</th>";
echo "<th>Telefonnummer</th>";
echo "<th>Epost</th>";
echo "</tr>";
echo "</thead>";
echo "<tr>";
echo "<td>$navn</td>";
echo "<td>$tlf</td>";
echo "<td>$epost</td>";
echo "</tr>";
echo "</table>";
?>
</body>
</html>