PDA

View Full Version : redirect page trouble..


acrobatNerd
11-11-2002, 01:47 AM
Hey! I´m using a mailform on my webbsite, here´s the code:

<html>
<style>

table
{
font-size:10px;
font-family:verdana;
background-color:#BBBBDD;
margin:0px 0px 0px 0px;
color:darkblue
}
.inps
{
font-family:verdana;
background-color:white;
font-size:9px;
color:blue;
font:bold;
width:100;
}
.title
{
font:bold;
color:white;
background-color:#AAAADD;
text-align:center;
height:17;
border-bottom:1px dotted darkblue;
}
.inp
{
font-size:10px;
font-family:verdana;
width:150;
}
</style>
<body bgcolor="#0076A3">
<script language="JavaScript">

function check_form(obj)
{
if(obj.to.value == "")
{
alert("Please enter a to address!");
return false;
}
else
{
if (obj.from.value == "")
{
alert("Please enter a from address!");
return false;
}}
return true
}

</script>
<ul>
<form onsubmit="return check_form(this)" method=post action="http://scriptbreaker.brinkster.net/mail/mail_page.asp">
<table style="border:2px solid #000000; ; border-collapse:collapse; background-color:#F26522" cellspacing=0 cellpadding=0 width=350 bordercolor="#111111">
<tr>
<td class="title" style="border-bottom-color: #000000; background-color: #FFFFFF">
<font color="#000000">Skicka ett mail till HTMLStudion.com</font></td></tr>
<tr><td align=center><br>
<table style="border-collapse: collapse; background-color: #F26522" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr><td><b>From</b></td><td>
<input type=text value="dinadress@blabla.com" class=inp name=from size="20"></td></tr>
<tr><td><b>To:</b></td><td><input type=text class=inp name=to size="20"></td></tr>
<tr><td><b>Cc:</b></td><td><input type=text class=inp name=cc size="20"></td></tr>
<tr><td><b>Bcc:</b></td><td><input type=text class=inp name=bcc size="20"></td></tr>
<tr><td><b>Subject:</b></td><td>
<input type=text class=inp name=subject_val size="20"></td></tr>
<tr><td colspan=2><br></td></tr>
<tr><td colspan=2>
<textarea rows=5 class=inp style="width:300" name=body_val cols="20">Meddelande:</textarea></td></tr>
<tr><td colspan=2><br></td></tr>
<tr><td colspan=2 align=center>
<input type=reset value="Återställ" class="inps" style="font-family: Verdana; font-size: 10px; color: #000000"><input type=submit value="Skicka mail!" class="inps" style="color: #000000"></td></tr>
<tr><td colspan=2><br></td></tr>
</table>
<input type=hidden name="redirect_url" value="">
</td></tr>
</table>
</form>
</ul>
</body>
</html>

When I click the send button, the mail is sent, but I want a "thank you-page", after they send it. Where in the script do I add that? Is it where it says: http://scriptbreaker.brinkster...." ?
Thanx dudes!:cool:

Bonkom
11-11-2002, 07:15 AM
I would imagine looking at what you have there you need to put a URL in the value for this tag
<input type=hidden name="redirect_url" value="">
check any readme's that are with the script you are using they normaly contain what you are looking for.

acrobatNerd
11-11-2002, 09:05 AM
Hey, Thanx a lot!
I should have been able to figure that out..:rolleyes:
Sometimes you need someone to open your eyes...
:)

Thanx!