oki so i made this forum in dreamveawer , and in "form action" i used a php script to send me the results in email and redirect them using a code i got from a member here , but the problem is i do get redirected but i dont get the email.. i dont know what the **** is wrong...
heres the code :
<?php
// Where email is sent
$to = 'webmaster@domain.com';
// From address
$from = 'noreply@domain.com>' . "\r\n";
// page visitor is sent after email is sent
$redirectURL = 'confirmation.htm';
// subject of the message
$subject = 'Email Message from Your Web site';
// start the message
$message = 'This message was sent via the form on your web site:' . "\n";
$message .= '---------------------------------------------------' . "\n";
// loop through posted values and add them to the message:
foreach($POST as $key=>$value)
{
$msg.="1. Pakkealternativ: ".$POST['pakkealternativ']."<br>\n";
$msg.="2. Fornavn: ".$POST['Fornavn']."<br>\n";
$msg.="3. Etternavn: ".$POST['Etternavn']."<br>\n";
$msg.="4. Person Nummer: ".$POST['Person Nummer']."<br>\n";
$msg.="5. Adresse: ".$POST['adresse']."<br>\n";
$msg.="6. postnummer: ".$POST['postnummer']."<br>\n";
$msg.="7. poststed: ". $POST['poststed']."<br>\n";
$msg.="8. telefon nummer: ". $POST['telefonnummer']."<br>\n";
$msg.="9. email: ". $POST['email']."<br>\n";
$msg.="10. kode: ". $_POST['kode']."<br>\n";
}
// send the email
$send = mail($to, $subject,$message, $from);
// redirect the user:
$redirect = header('Location: ' . $redirectURL);
exit;
?>
any help is greatly appriciated ....