Permalink
Browse files

Show success message

  • Loading branch information...
vojtasvoboda committed Aug 17, 2014
1 parent f0bdffd commit d7a753229365ac50ba5c6965c1684c5b9608acb0
Showing with 7 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 index.php
  3. +5 −0 templates/index.php
View
@@ -1,2 +1,3 @@
/vendor/
.idea
temp
View
@@ -53,7 +53,7 @@
// redirect
header("HTTP/1.1 303 See Other");
header("Location: /?done=1");
header("Location: ?done=1");
exit;
}
View
@@ -13,12 +13,17 @@
<style>
.error { color: red; }
.success { color: green; }
th { text-align: right; }
</style>
</head>
<body>
<?php if (isset($_GET['done'])) { ?>
<p class="success">Registration has been successfully created. E-mail sent.</p>
<?php } ?>
<?php if (isset($form)) { ?>
<?=$form;?>
<?php } else { ?>

0 comments on commit d7a7532

Please sign in to comment.