Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to not use directly global variables in PHP


<?php
$search_html = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS);
$search_url = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_ENCODED);
echo "Vous avez recherché $search_html.
";
echo "<a href='?search=$search_url'>Nouvelle recherche.</a>";
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #How #global #variables #PHP
ADD COMMENT
Topic
Name
1+1 =