Forsøger at lave php file_put til signup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Rasmus Malver 2021-04-27 09:12:31 +02:00
parent fb664724b5
commit 56ae9d1e49
2 changed files with 8 additions and 4 deletions

View file

@ -3,16 +3,20 @@
$email = $_GET["email"];
$lang = "da";
$to = "rasmus@ulovliglogning.dk";
$to = "rasmusulovliglogning.dk";
$subject = "signup";
$body = "email: ".$email."\nlang: ".$lang;
// Report all PHP errors
error_reporting(E_ALL);
$a = mail($to, $subject, $body);
print_r($email);
print_r($a);
$fi = file_get_contents("signup.csv");
$fi.= $email;
file_put_contents("signup.csv",$fi);
//$a = mail($to, $subject, $body);
//print_r($email);
//print_r($a);
//
// if (mail($to, $subject, $body)) {
// if ($lang == "da") {
// $redirect = "https://ulovliglogning.dk/redirect/success/";

0
signup.csv Normal file
View file