WIP register form draft

This commit is contained in:
2025-09-20 22:13:16 +02:00
parent ac280050e3
commit 51879a3591
3 changed files with 87 additions and 0 deletions

20
register_post.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
include 'header.php';
?>
<article>
Hej <strong><?php $nick=$_POST["nick"]; printf("%s", "$nick"); ?></strong>!
<br><br>
Otrzymaliśmy twój formularz rejestracji. Oczekuj na dalsze informacje na swojej skrzynce mailowej. :)
</article>
<?php
$nick=$_POST["nick"];
$to = 'smoorg@tylda.org';
$subject = 'Rejestracja usera' . "$nick";
$message = 'Nick' . $_POST["nick"] . "\n" . 'Email' . $_POST["email"]
;
$headers = 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>