Forsøger at lave php file_put til signup

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

0
signup.csv Normal file
View file