Traiter les cotes avec la fonction ‘get_magic_quotes_gpc( )’

Author:


Download

<?php
if (is_null($_GET["recherche"])) {
    print '<form method="'.htmlentities($_SERVER["PHP_SELF"]).'" method="GET">';
    print '    <label>';
    print '       Recherche:';
    print '       <input type="text" name="recherche" id="recherche" />';
    print '    </label>';
    print '    <input type="submit" value="Go!" />';
    print '</form>';
    }
    else
    {
    $recherche = $_GET["recherche"];

    if (!get_magic_quotes_gpc(  ))
    {
        $recherche = htmlentities($recherche);
    }
    if ($recherche != null )
    {
        print "Le mot clé de la recherche: <strong>$recherche</strong>.";
    }
}
?>

Leave a Reply

Your email address will not be published. Required fields are marked *


7 + = twelve