test code
This commit is contained in:
parent
79331ce222
commit
1c5abc4834
@ -37,6 +37,8 @@
|
||||
</script>
|
||||
|
||||
<?php
|
||||
ini_set('log_errors', 1);
|
||||
|
||||
if(isset($_POST['email']) && isset($_POST['message'])) {
|
||||
$email = $_POST['email'];
|
||||
$message = $_POST['message'];
|
||||
@ -48,12 +50,10 @@ if(isset($_POST['email']) && isset($_POST['message'])) {
|
||||
|
||||
if($m->send()) {
|
||||
console_log("zprava odeslana");
|
||||
console_log("zprava:");
|
||||
console_log($m);
|
||||
header('Location: /?sent=true');
|
||||
} else {
|
||||
console_log("zprava neodeslana");
|
||||
console_log($m);
|
||||
error_log("Message wasn't sent");
|
||||
error_log($m);
|
||||
echo "<p>Něco se nepovedlo, zkuste to znovu... :(</p>";
|
||||
echo "<a href='/'>Zpět</a>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user