Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: daniel rouaix
Added: Jul 26, 2018 12:55 PM
Views: 4
Tags: no tags
  1. <?php
  2.  
  3. function getErreur(){
  4.     $html = "";
  5.     if($_SESSION["erreur"] != ""){
  6.         $html .= "<hr />";
  7.         $html .= "<p>".$_SESSION["erreur"]."</p>";
  8.         $html .= "<hr />";
  9.         $_SESSION["erreur"] = "";
  10.     }
  11.     return $html;
  12. }
  13. function getAlerte(){
  14.     $html = "";
  15.     if($_SESSION["alerte"] != ""){
  16.         $html .= "<hr />";
  17.         $html .= "<p>".$_SESSION["alerte"]."</p>";
  18.         $html .= "<hr />";
  19.         $_SESSION["alerte"] = "";
  20.     }
  21.     return $html;
  22. }
  23. function getMessage(){
  24.     $html = "";
  25.     if($_SESSION["message"] != ""){
  26.         $html .= "<hr />";
  27.         $html .= "<p>".$_SESSION["message"]."</p>";
  28.         $html .= "<hr />";
  29.         $_SESSION["message"] = "";
  30.     }
  31.     return $html;
  32. }
  33. ?>
  34.