hvis brugernavn findes så ... desværre brugernavnet er taget
indsættes i denne kode<html>
<head>
<title></title>
</head>
<body>
<?php
if ($submit && $sti && $bruger && $url && $password && $email)
{
$insertstring = $sti.\"\".$bruger.\";\".$url.\"\".$bruger.\";\".$bruger.\";\".$password.\";\".$email.\"\\n\";
$fp = fopen(\"filnavn.txt\",\"a+\");
fputs($fp, $insertstring);
fclose($fp);
print(\"Linie tilføjet til fil<BR>\\n\");
}
elseif ($submit)
{
print(\"Du har ikke udfyldt alle felter!<BR>\\n\");
}
?>
<pre>
<form action=\"<?php echo $PHP_SELF ?>\" method=\"post\">
<input type=\"hidden\" name=\"sti\" value=\"/www/domæne/html/\">
Bruger: <input type=\"text\" name=\"bruger\">
<input type=\"hidden\" name=\"url\" value=\"http://www.domæne.dk/\">
Password: <input type=\"password\" name=\"password\">
Email: <input type=\"text\" name=\"email\">
<input type=\"hidden\" name=\"submit\" value=\"yes\">
<input type=\"submit\"><input type=\"reset\">
</form>
</pre>
</body>
</html>
