Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need a new success page after the form I'm a novice any advice

Status
Not open for further replies.

chachacla

Technical User
Jan 20, 2003
2
US
I have a freeservers account and the script works but I want to add my own success page i have an html file i want to use. Can I do this or does the server come up with there own success page?

I love you guys
Jason



<html>
<head>
<title>ProjectSpring.com : Find the best freelance programmers.</title>
<script language=&quot;JavaScript&quot;>
function doCheck() {
if (!validName())
{
return false;
}
if (!validEmail())
{
return false;
}
if (!validMessage())
{
return false;
}
return true;
}

function validName()
{
var str=document.emailform.yourname.value;
if ((str == null) || (str.length == 0))
{
alert(&quot;Please enter your Name.&quot;);
return false;
}
return true;
}
function validEmail()
{
var str=document.emailform.youremail.value;
if ((str == null) || (str.length == 0) || (str.indexOf(&quot;@&quot;)==-1))
{
alert(&quot;Please enter a valid Email Id.&quot;);
return false;
}
return true;
}
function validMessage()
{
var str=document.emailform.mesg.value;
if ((str == null) || (str.length == 0))
{
alert(&quot;Please enter your Message Details.&quot;);
return false;
}
if (str.length > 3000)
{
alert(&quot;Message Details too long. Maximum allowed length for Message is 3000 characters.&quot;);
return false;
}
return true;
}
</script>
</head>
<body marginheight=0 marginwidth=0 topmargin=0 leftmargin=0>
<table border=0 width=100%> <tr valign=top> <td valign=top align=center> <center>
<form action=&quot;/cgi-bin/cgiemail&quot; method=&quot;post&quot;> name=emailform> <table border=0 width=95%>
<tr bgcolor=&quot;#6699cc&quot;> <td><font color=white face=arial size=2><b>Contact Us</b></font>
</td></tr> <tr bgcolor=&quot;#f3f3f3&quot;> <td> <font face=&quot;arial&quot; size=2 color=&quot;#666666&quot;><b>
Use this form to contact us for any of your development needs. We can take up
custom software development at very low prices. </b></font><br><br> <center> <table border=0>
<tr> <td><font face=&quot;arial&quot; size=2 color=&quot;#666666&quot;><b>Your Name </b></font></td><td><input type=text name=yourname size=40></td></tr>
<tr> <td><font face=&quot;arial&quot; size=2 color=&quot;#666666&quot;><b>Enter Email-Id </b></font></td><td><input type=text name=youremail size=40></td></tr>
<tr> <td><font face=&quot;arial&quot; size=2 color=&quot;#666666&quot;><b>Your Message Here </b></font></td><td>
<textarea name=mesg rows=6 cols=40 wrap=&quot;virtual&quot;></textarea> </td></tr> <tr>
<td align=center colspan=2><br> <input type=submit value=&quot; Send &quot; onClick=&quot;return doCheck()&quot;>
</td></tr> </table></center></td></tr> </table></form></center></td></tr> </table><center>
Your Copyright message here.<br><br> </center>
</body>
</html>
 
Normally, free servers allow you to specify the loaction of the success page to keep your client on your site. You might check the documentation of the freeserver script or contact an admin. Sometime the location of this success page is passed in a hidden field.

Ask your admin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top