Redirect
HejsaJeg vil gerne have man redirecter tilbage til start igen... Jeg har en "anbefal ting", og når man har sendt, sin anbefaling står der, "tak osv", og det skulle der gerne stå i 3-5 sek. og så kommer den " anbefal ting", frem igen....
Nogle der kan hjælpe mig med dette. Min kode ser sådan her ud:
--------------------- KODE START ----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Anbefaling</title>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<%
navn = request("navn")
if Request.ServerVariables("REQUEST_METHOD") = "POST" then
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ContentTransferEncoding = "8bit"
JMail.Charset = "ISO-8859-1"
JMail.Priority = 1
JMail.ServerAddress = "mail.pixel-studios.dk"
JMail.Sender = "postmaster@pixel-studios.dk"
JMail.Subject = "Anbefaling"
JMail.Body = "Hej!" & vbCrLf & "Det er " & navn & vbCrLf & vbCrLf
JMail.Body= JMail.Body + "Tjek lige Pixel Studios ud" & vbCrLf & vbCrLf
JMail.Body= JMail.Body + "www.pixel-studios.dk" & vbCrLf & "Et fedt site med photoshop tutorials, web-tips og meget mere." & vbCrLf & vbCrLf
JMail.AddRecipient request("ad")
' Send it...
JMail.Execute
set JMail = nothing
response.write " Tak.<br><br>Din anbefaling er sendt til " & request("ad")
else %>
<form action="anbef.asp" METHOD="POST">
<table cool width="225" height="89" showgridx showgridy gridx="16" gridy="16" border="0" cellpadding="0" cellspacing="0">
<tr height="17">
<td width="8" height="88" rowspan="4"></td>
<td width="216" height="17" colspan="2"></td>
<td width="1" height="17"><spacer type="block" width="1" height="17"></td>
</tr>
<tr height="27">
<td width="102" height="51" rowspan="2" valign="top" align="left" xpos="8"><img src="../pic/anbefalsite.gif" width="89" height="41" border="0"></td>
<td width="114" height="27" valign="top" align="left" xpos="110"><input type="TEXT" onfocus="this.form.ad.select()" value="Modtagerens e-mail?" name="ad" size="16" style="border-style: solid; background-color: #FFFFFF; border-width: 1px; border-color: #000000F; font: 11px verdana;"></td>
<td width="1" height="27"><spacer type="block" width="1" height="27"></td>
</tr>
<tr height="24">
<td width="114" height="24" valign="top" align="left" xpos="110"><input TYPE="TEXT" onFocus="this.form.navn.select()" value="Afsenderens navn?"
NAME="navn" SIZE="16" style="border-style: solid; background-color: #FFFFFF; border-width: 1px; border-color: #000000; font: 11px verdana;"></td>
<td width="1" height="24"><spacer type="block" width="1" height="24"></td>
</tr>
<tr height="20">
<td width="102" height="20"></td>
<td width="114" height="20" valign="top" align="left" xpos="110"><input type="submit" style="border-style: solid; background-color: #90DA1A; border-width: 1px; border-color: #000000; font: 11px verdana;" value="Send"></td>
<td width="1" height="20"><spacer type="block" width="1" height="20"></td>
</tr>
<tr height="1" cntrlrow>
<td width="8" height="1"><spacer type="block" width="8" height="1"></td>
<td width="102" height="1"><spacer type="block" width="102" height="1"></td>
<td width="114" height="1"><spacer type="block" width="114" height="1"></td>
<td width="1" height="1"></td>
</tr>
</table>
</form>
<% end if%>
</body>
</html>
------------------------ KODE SLUT -----------------------
---- Staz ----