main/register_post.php
2025-09-20 22:13:16 +02:00

21 lines
534 B
PHP

<?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);
?>