forked from tylda-public/main
		
	code review
This commit is contained in:
		
							parent
							
								
									51879a3591
								
							
						
					
					
						commit
						2d4ab3cf4b
					
				@ -3,18 +3,36 @@ include 'header.php';
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
<article>
 | 
			
		||||
    Hej <strong><?php $nick=$_POST["nick"]; printf("%s", "$nick"); ?></strong>!
 | 
			
		||||
Hej 
 | 
			
		||||
<strong>
 | 
			
		||||
<?php printf("%s", htmlspecialchars($_POST["nick"])); ?>
 | 
			
		||||
</strong>!
 | 
			
		||||
<br><br>
 | 
			
		||||
Otrzymaliśmy twój formularz rejestracji. Oczekuj na dalsze informacje na swojej skrzynce mailowej. :)
 | 
			
		||||
</article>
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
    $nick=$_POST["nick"];
 | 
			
		||||
    $nick=htmlspecialchars($_POST["nick"]);
 | 
			
		||||
    $email=htmlspecialchars($_POST["email"]);
 | 
			
		||||
    $url=htmlspecialchars($_POST["url"]);
 | 
			
		||||
    $who=htmlspecialchars($_POST["who"]);
 | 
			
		||||
    $how=htmlspecialchars($_POST["how"]);
 | 
			
		||||
    $interests=htmlspecialchars($_POST["interests"]);
 | 
			
		||||
 | 
			
		||||
    $to      = 'smoorg@tylda.org';
 | 
			
		||||
    $subject = 'Rejestracja usera' . "$nick";
 | 
			
		||||
    $message = 'Nick' . $_POST["nick"] . "\n" . 'Email' . $_POST["email"]
 | 
			
		||||
    $message = "Nick: $nick\n" . 
 | 
			
		||||
	"Email: $email\n" .
 | 
			
		||||
	"Url: $url\n" .
 | 
			
		||||
	"Opowiedz coś na swój temat: $who\n" .
 | 
			
		||||
	"Jak do nas trafiłeś?: $how\n" .
 | 
			
		||||
	"Zainteresowania: $interests\n"
 | 
			
		||||
	;
 | 
			
		||||
    $headers = 'X-Mailer: PHP/' . phpversion();
 | 
			
		||||
    $headers = array(
 | 
			
		||||
        'From' => 'noreply@tylda.org',
 | 
			
		||||
        'Reply-To' => 'noreply@tylda.org',
 | 
			
		||||
        'X-Mailer' => 'PHP/' . phpversion()
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    mail($to, $subject, $message, $headers);
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user