/ Published in: PHP
It will show a saved success message. Usefull for forms to show people a success message after redirecting to another site.
Needs session_start()
Needs session_start()
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function success() { print('<div id="success">' .$_SESSION['success']. '</div>'); $_SESSION['info'] = ''; } } function setsuccess($text) { $_SESSION['success'] = $text; }