JShor thanks, was not quite the way I wanted it, so I removed the checkbox button and just changed the code. So that I receive the data from fill-out form and the sender recieves a confirmation mail with some explenation.
Code:
<?
$subject="from ".$_GET['name'];
$headers= "From: ".$_GET['e-mail']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail("info@somemail.com", $subject ="Contact message","
<html>
<head>
<title>Contact message</title>
</head>
<body>
<br>
".$_GET['name']."
".$_GET['surrname']."
<br>
".$_GET['address']."
<br>
".$_GET['post.code']."
".$_GET['city']."
<br>
".$_GET['telephone']."
<br>
".$_GET['e-mail']."
<br>
<br>
".$_GET['checkbox1']."
<br>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
?>
<?
$to = $_GET['e-mail'];
$message = "Thank you message.<br>We will try to answer you in a short time!<br><br>Someone.com";
$subject = "Message confirmation - Someone.com";
$header = "From: info@somemail.com (Someoen.com)\r\n";
$header .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit";
mail($to, $subject, $message, $header);
?>
<script language="JavaScript" type="text/JavaScript">
<!--
window.location.href = "http://www.feltne.com/oddano_s.htm";
//-->
</script>
Bookmarks