Prøv Denne her
Hvis Serveren understøtter asp kan du bruge det. Men det ser kun pænt ud det bliver jo kun sendt til siden.
<% @Language = VBScript %>
<%
Option Explicit
Response.Expires = 0
Dim strFirstname, strLastname, strAdresse, strPostnummer, strBy, strTelefon, strEmail
If Request.ServerVariables ("CONTENT_LENGTH") <> 0 Then
' Retrieving form data from Post command body
strFirstname = Trim(Request.Form("firstname"))
strLastname = Trim(Request.Form("lastname"))
strAdresse = Trim(Request.Form("adresse"))
strPostnummer = Trim(Request.Form("postnummer"))
strBy = Trim(Request.Form("by"))
strTelefon = Trim(Request.Form("telefon"))
strEmail = Trim(Request.Form("email"))
%>
<HTML><BODY>
The script has recieved the form data.<BR><BR>
First name: <%= strFirstname %><BR><BR>
Last name: <%= strLastname %><BR><BR>
Adresse: <%= strAdresse %><BR><BR>
Postnummer: <%= strPostnummer %><BR><BR>
By: <%= strBy %><BR><BR>
Telefonnummer: <%= strTelefon %><BR><BR>
E-mail: <%= strEmail %><BR><BR>
<%
Else
%>
Please provide your name:<BR>
<FORM ACTION="<%= Request.ServerVariables("SCRIPT_NAME") %>" METHOD="POST">
<table border="0" width="350" height="1" cellspacing="0" cellpadding="0">
<tr>
<td width="122" height="4">
First name:</td>
<td width="184" height="4"><INPUT TYPE="text" NAME="firstname"></td>
</tr>
<tr>
<td width="122" height="8">
Last name:</td>
<td width="184" height="8"><INPUT TYPE="text" NAME="lastname"></td>
</tr>
<tr>
<td width="122" height="16">
Adresse:</td>
<td width="184" height="16"><INPUT TYPE="text" NAME="adresse"></td>
</tr>
<tr>
<td width="122" height="6">
Post Nr.:</td>
<td width="184" height="6"><INPUT TYPE="text" NAME="postnummer"> </td>
</tr>
<tr>
<td width="122" height="14">
By:</td>
<td width="184" height="14"><INPUT TYPE="text" NAME="by"></td>
</tr>
<tr>
<td width="122" height="13">
Telefon:</td>
<td width="184" height="13"><INPUT TYPE="text" NAME="Telefon"></td>
</tr>
<tr>
<td width="122" height="16">
Email:</td>
<td width="184" height="16"><INPUT TYPE="text" NAME="email"></td>
</tr>
<tr>
<td width="122" height="8"></td>
<td width="184" height="8">
<INPUT TYPE="submit" NAME="submit" VALUE="Send">
</td>
</tr>
</table>
</FORM>
</BODY></HTML>
<% End If %>