Skip to content

Commit

Permalink
Show success message
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtasvoboda committed Aug 17, 2014
1 parent f0bdffd commit d7a7532
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
/vendor/ /vendor/
.idea .idea
temp
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -53,7 +53,7 @@


// redirect // redirect
header("HTTP/1.1 303 See Other"); header("HTTP/1.1 303 See Other");
header("Location: /?done=1"); header("Location: ?done=1");
exit; exit;


} }
Expand Down
5 changes: 5 additions & 0 deletions templates/index.php
Expand Up @@ -13,12 +13,17 @@


<style> <style>
.error { color: red; } .error { color: red; }
.success { color: green; }
th { text-align: right; } th { text-align: right; }
</style> </style>


</head> </head>
<body> <body>


<?php if (isset($_GET['done'])) { ?>
<p class="success">Registration has been successfully created. E-mail sent.</p>
<?php } ?>

<?php if (isset($form)) { ?> <?php if (isset($form)) { ?>
<?=$form;?> <?=$form;?>
<?php } else { ?> <?php } else { ?>
Expand Down

0 comments on commit d7a7532

Please sign in to comment.