From 56ae9d1e492c1d137f756f58f3832a91c276b50c Mon Sep 17 00:00:00 2001 From: Rasmus Malver Date: Tue, 27 Apr 2021 09:12:31 +0200 Subject: [PATCH] =?UTF-8?q?Fors=C3=B8ger=20at=20lave=20php=20file=5Fput=20?= =?UTF-8?q?til=20signup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail.php | 12 ++++++++---- signup.csv | 0 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 signup.csv diff --git a/mail.php b/mail.php index 02b644a9..5b271a6e 100644 --- a/mail.php +++ b/mail.php @@ -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/"; diff --git a/signup.csv b/signup.csv new file mode 100644 index 00000000..e69de29b