Oplysning om hvad der indtastet i formular
Jeg vil lave en formular, hvor man efter, at have indtastet sine oplysninger får et vindue med oplysningerne vist.F.eks:
<html>
<head>
<title>Add Elements To A Form</title>
</head>
<body>
<h1>Welcome to the ABC Web Site</h1>
<form action="processform.php" method="post">
Enter your name:
<input type="text" name="username"><br>
<input type="submit" name="submit">
</form>
</body>
</html>
-gemmes som formular.htm
og:
<html>
<head>
<title>Process Form Data</title>
</head>
<body>
<h3>Your information has been processed.</h3>
<?php
print "Thank you $username<br>";
?>
</body>
</html>
gemmes som processform.php.
MEN de indtastede data bliver ikke vist.
Hvad er fejlen?
