theecho
01-10-2005, 03:32 PM
Hey guys,
I've created a php script within my form page (if you get me). It work perfect, except for one tiny thing. After 'potential clients' have filled the form in, i want them to go to a thankyou page at say www.mydoman.com/thnks.htm, how abouts would i do this?
heres my script; (i'll post what you need to save space) link to screenshot; http://81.97.142.198/test/untitled.bmp
<?$emailadres = "xxxxxxxxxxx";
if (isset($_POST)){
mail($emailadres, "hosting", "First Name: ".$_POST['firstname']."\nSurname: ".$_POST['surname']."\nCompany Name: ".$_POST['companyname']."\nAddress: ".$_POST['address']."\nTown/City: ".$_POST['city']."\nCounty: ".$_POST['county']."\nCountry: ".$_POST['country']."\nEmail Address: ".$_POST['email']."\nEmail Address2: ".$_POST['email2']."\nUsername: ".$_POST['username']."\nPassword: ".$_POST['password']."\nPassword2: ".$_POST['password2']."\nHosting Plan: ".$_POST['plan']."\nPayment Period: ".$_POST['payment']."\nPaypal Address:\n".$_POST['paypal']);
}
?>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-size: 12px}
-->
</style>
<form action="joinform.php" method="post" class="style1">
<table summary="" border="0"><br>
<tr><br>
<?$emailadres = "liam.mayer@lamuk.co.uk";
if (isset($_POST)){
mail($emailadres, "hosting", "First Name: ".$_POST['firstname']."\nSurname: ".$_POST['surname']."\nCompany Name: ".$_POST['companyname']."\nAddress: ".$_POST['address']."\nTown/City: ".$_POST['city']."\nCounty: ".$_POST['county']."\nCountry: ".$_POST['country']."\nEmail Address: ".$_POST['email']."\nEmail Address2: ".$_POST['email2']."\nUsername: ".$_POST['username']."\nPassword: ".$_POST['password']."\nPassword2: ".$_POST['password2']."\nHosting Plan: ".$_POST['plan']."\nPayment Period: ".$_POST['payment']."\nPaypal Address:\n".$_POST['paypal']);
}
?>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-size: 12px}
-->
</style>
<form action="joinform.php" method="post" class="style1">
<table summary="" border="0"><br>
<tr><br>
Cheers.
Echo.
I've created a php script within my form page (if you get me). It work perfect, except for one tiny thing. After 'potential clients' have filled the form in, i want them to go to a thankyou page at say www.mydoman.com/thnks.htm, how abouts would i do this?
heres my script; (i'll post what you need to save space) link to screenshot; http://81.97.142.198/test/untitled.bmp
<?$emailadres = "xxxxxxxxxxx";
if (isset($_POST)){
mail($emailadres, "hosting", "First Name: ".$_POST['firstname']."\nSurname: ".$_POST['surname']."\nCompany Name: ".$_POST['companyname']."\nAddress: ".$_POST['address']."\nTown/City: ".$_POST['city']."\nCounty: ".$_POST['county']."\nCountry: ".$_POST['country']."\nEmail Address: ".$_POST['email']."\nEmail Address2: ".$_POST['email2']."\nUsername: ".$_POST['username']."\nPassword: ".$_POST['password']."\nPassword2: ".$_POST['password2']."\nHosting Plan: ".$_POST['plan']."\nPayment Period: ".$_POST['payment']."\nPaypal Address:\n".$_POST['paypal']);
}
?>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-size: 12px}
-->
</style>
<form action="joinform.php" method="post" class="style1">
<table summary="" border="0"><br>
<tr><br>
<?$emailadres = "liam.mayer@lamuk.co.uk";
if (isset($_POST)){
mail($emailadres, "hosting", "First Name: ".$_POST['firstname']."\nSurname: ".$_POST['surname']."\nCompany Name: ".$_POST['companyname']."\nAddress: ".$_POST['address']."\nTown/City: ".$_POST['city']."\nCounty: ".$_POST['county']."\nCountry: ".$_POST['country']."\nEmail Address: ".$_POST['email']."\nEmail Address2: ".$_POST['email2']."\nUsername: ".$_POST['username']."\nPassword: ".$_POST['password']."\nPassword2: ".$_POST['password2']."\nHosting Plan: ".$_POST['plan']."\nPayment Period: ".$_POST['payment']."\nPaypal Address:\n".$_POST['paypal']);
}
?>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-size: 12px}
-->
</style>
<form action="joinform.php" method="post" class="style1">
<table summary="" border="0"><br>
<tr><br>
Cheers.
Echo.
