ulovliglogning.dk/dynamic/signup/index.php

25 lines
587 B
PHP
Raw Normal View History

2018-01-25 21:35:10 +00:00
<?php
$email = $_POST["email"];
$lang = $_POST["lang"];
$to = "ulovliglogning@protonmail.com";
$subject = "signup";
$body = "email: ".$email."\nlang: ".$lang;
if (mail($to, $subject, $body)) {
if ($lang == "da") {
2018-01-25 21:38:55 +00:00
$redirect = "https://ulovliglogning.dk/redirect/success/";
2018-01-25 21:35:10 +00:00
} else {
2018-01-25 21:38:55 +00:00
$redirect = "https://ulovliglogning.dk/".$lang."/redirect/success/";
2018-01-25 21:35:10 +00:00
}
} else {
if ($lang == "da") {
2018-01-25 21:38:55 +00:00
$redirect = "https://ulovliglogning.dk/redirect/fail/";
2018-01-25 21:35:10 +00:00
} else {
2018-01-25 21:38:55 +00:00
$redirect = "https://ulovliglogning.dk/".$lang."/redirect/fail/";
2018-01-25 21:35:10 +00:00
}
}
header('Location: '.$redirect);
die();
?>