Link maker koden.
Du skal rette den røde skrift
Kode 1 skal ligge mellem </head> og <body>

------------ Kode 1 ------------

<?php
// define variables and set to empty values
$name = $email = $gender = $comment = $website = "";

if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = test_input($_POST["name"]);
$emne = test_input($_POST["emne"]);
$website = test_input($_POST["website"]);
$comment = test_input($_POST["comment"]);
$target = test_input($_POST["target"]);
$test1 = test_input($_POST["test1"]);
$test2 = test_input($_POST["test2"]);
$test3 = test_input($_POST["test3"]);
$test4 = test_input($_POST["test4"]);
$test5 = test_input($_POST["test5"]);

}

function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
------------ Kode 1 slut------------

kode 2 skal ligge mellem <body> og </body>

------------ Kode 2 ------------
<center>
<h2>Link Maker</h2>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<table width="27%" border="0">
<tr>
<td width="40%">Website: </td>
<td width="60%">
<input type="text" name="website" value="500.dk">
</td>
</tr>
<tr>
<td width="40%">Link navn:</td>
<td width="60%">
<input type="text" name="comment" value="Php koder">
</td>
</tr>
<tr>
<td width="40%">Title:</td>
<td width="60%">
<input type="text" name="emne" value="Alt om php koder og html koder ">
</td>
</tr>
<tr>
<td width="40%">Target:</td>
<td width="60%">
<input type="radio" name="target" value="blank">
blank
<input type="radio" name="target" value="parent">
parent <br>
<input type="radio" name="target" value="self">
self
<input type="radio" name="target" value="top">
top
<input type="hidden" name="test1" value="<a href='http://">
<input type="hidden" name="test2" value="' title='">
<input type="hidden" name="test3" value="' target='">
<input type="hidden" name="test4" value="'>">
<input type="hidden" name="test5" value="</a>">
</td>
</tr>
<tr>
<td colspan="2">
<?php
echo "<br>";
echo "<a href='http://$website' title='$emne' target='$target' >$comment</a>";
echo "<br>";
echo $test1;
echo $website;
echo $test2;
echo $emne;
echo $test3;
echo $target;
echo $test4;
echo $comment;
echo $test5;
?>
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="image" name="submit" src="http://dit web.dk/knap.gif"> </div>
</td>
</tr>
</table>
</form>

------------ Kode 2 slut ------------