Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_GET['categories']) && isset($_GET['tags']) && isset($_GET['months'])) {
- $categoryInput = htmlspecialchars($_GET['categories']);
- $categories = explode(', ', $categoryInput);
- $tagsInput = htmlspecialchars($_GET['tags']);
- $tags = explode(', ', $tagsInput);
- $monthsInput = htmlspecialchars($_GET['months']);
- $months = explode(', ', $monthsInput);
- echo "<h2>Categories</h2>";
- echo "<ul>";
- foreach ($categories as $category) {
- echo "<li>$category</li>";
- }
- echo "</ul>";
- echo "<h2>Tags</h2>";
- echo "<ul>";
- foreach ($tags as $tag) {
- echo "<li>$tag</li>";
- }
- echo "</ul>";
- echo "<h2>Months</h2>";
- echo "<ul>";
- foreach ($months as $month) {
- echo "<li>$month</li>";
- }
- echo "</ul>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement