Jeg troede at man kunne se det via "view > source" - Scriptet kommer her:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Troels Sebelin</title>
<style type="text/css">
<!--
body,td,th {
font-family: Courier New, Courier, mono;
font-size: 12px;
color: #999999;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a {
font-size: 12px;
color: #999999;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #999999;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #999999;
}
-->
</style></head>
<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><form action="" method="post">
<div align="left">Name: <br />
<input type="text" name="name" />
<br />
Email: <br />
<input type="text" name="email" />
<br />
Subject: <br />
<input type="text" name="subject" />
<br />
Text:<br />
<textarea name="message" cols="40" rows="5"></textarea>
<br />
<input type="submit" name="submit" value="Send" />
<input type="reset" name="Reset" value="Reset" />
<?php
if ($submit) { // Hvis formen skal sendes, så gør følgende
if($name && $subject && $email && $message ) { // Hvis all felterne er udfyldt
mail("troels@sebelin.com","$subject","$message","From: $name <$email>") or die("email error");
echo "Thank you, your mail has now been sent"; // Hvis alt går som det skal så skriv dette
} else {
echo "All fields must be filled in!<BR>"; // hvis der er nogle ting der mangler så skriv dette
}
} // slut php submission kode
?>
</div>
</form></td>
</tr>
</table>
</body>
</html>
VH
Kokane