SHARE
TWEET

Untitled

a guest Aug 12th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $html = <<<HTML
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  4. <html>
  5.     <head>
  6.       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7.       <title>Table de multiplication</title>
  8.     </head>
  9.     <body>
  10.    
  11. HTML;
  12.  
  13. $joursem = array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi") ;
  14. $html .= "Vous avez cours le " ;
  15.     foreach($_GET['jour'] as $jour)
  16.     {
  17.         $mesjours[$jour] .= $joursem[$jour] ;
  18.     }
  19.     $sep = implode(",", $mesjours) . "." ;
  20.     $html .= $sep ;
  21.  
  22. $html.=<<<HTML
  23.     </body>
  24. </html>
  25. HTML;
  26. echo $html ;
  27. ?>
RAW Paste Data
Top