I får squ lige hele koden!
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<form action="tjek.php" method="post">
Navn;<input type=text name="navn">
Email:<input type=text name="email">
icq:<input type=text name="icq">
url:<input type=text name="url">
Besked;<input type=text name="besked">
<input type="submit" value="send" name="insertSQL">
</form>
<?php
function LinkIt($tekst) {
$tekst = eregi_replace("((f|ht){1}
tp://[a-z0-9@:%_.~#-\?&]+)", "<a href=\"\\1\">\\1</a>", $tekst);
return eregi_replace("([a-z0-9._-]+@[a-z0-9._-]+\.[a-z0-9._-]+)","<a href=\"mailto:\\1\">\\1</a>",$tekst);
}
$conn = mysql_connect("localhost");
mysql_select_db("gæstebog");
$tabel = "gbog";
$navn = "$navn";
$email = "$email";
$icq = "$icq";
$url = "$url";
$besked = "$besked";
if($insertSQL){
mysql_query("insert into $tabel (navn,email,besked) values ('$navn','$email','$besked')");
}
$resultat = mysql_query("select emne, url, icq, navn, email, dato, tid, besked from gbog order by ID desc");
while ($raekke = mysql_fetch_array($resultat)) {
extract($raekke);
print "<br>$emne<br>$Url<br>$icq<br>$navn<br>$email<br>$besked<br>$dato<br>$tid<br>";
}
mysql_close();
?>