This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solutions: | |
//Solution #1 : Validation Code snippet: | |
<?php if (preg_match('/^[ A-Za-z0-9_@.#&-]*$/', $_GET['query'])) { ?> | |
<div class="column prepend-1 span-24 first last"> | |
<h2>Pictures that are tagged as '<?= $_GET['query'] ?>'</h2> | |
<?php thumbnail_pic_list($pictures); ?> | |
</div> |