WIP register form draft
This commit is contained in:
20
register_post.php
Normal file
20
register_post.php
Normal 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);
|
||||
?>
|
||||
Reference in New Issue
Block a user