Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- div {float:left; min-width: 200px;}
- td,table {border: 1px solid blue;}
- </style>
- </head>
- <body>
- <?php
- echo "<script>";
- echo "alert('Sono stato generato dal PHP!!');";
- echo "</script>";
- $discipline_str = "Italiano - Storia - Matematica - Lingua Inglese - Tecnologie - Telecomunicazioni - Informatica - Sistemi - Scienze Motorie - Religione";
- $discipline = explode("-", $discipline_str);
- $colore_testo="red";
- // echo $discipline[0]."<br>";
- // echo $discipline["0"]."<br>";
- foreach($discipline as $key => $disciplina)
- $discipline[$key] = trim($disciplina);
- echo "<div>";
- echo "<h3>LISTE</h3>";
- echo "<ul>";
- foreach($discipline as $disciplina)
- echo "<li>#$disciplina#</li>";
- echo "</ul>";
- echo "</div>";
- echo "<div>";
- echo "<h3>DROP DOWN LIST</h3>";
- echo "<select>";
- foreach($discipline as $disciplina)
- echo "<option>$disciplina</option>";
- echo "</select>";
- echo "</div>";
- echo "<div>";
- echo "<h3>CHECK BOX</h3>\n";
- echo "</div>";
- echo "<div>";
- echo "<h3>RADIO BUTTON</h3>";
- echo "</div>";
- echo "<div style='clear:both;'>";
- echo "<table>";
- echo "</table>";
- echo "</div>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement