Подробнее
a rwmoM npocmc t the 'id' value from the query str filtering to ensure it mutches the i b $id - filter_input(lNPUl GET, 'id', F1LTER_SAN1TIZE NUMB ); 7 // Filter the 'title' value, which can contain special characters (HTML entiriec and the like). V *title filter input(i’-li'Ui Gfc i, 'title', I ILitK bAMlliZt_SI'EtiAL_CHAKi); 9 // Build a sinplc URL v:ilh sonc good (matching) and bad values. 10 SgnodllRI haeetlRI () http_bui1d_query(array('id' ri?7f>, title' > "Les Miserables")); 11 $badURL baset)RL() '?' http_build_query(array('id' "not a number title’ "lee Miserable«;“)); 12 function baseUKL() ( 13 , u- ( $_SERVER['HTTPS']) > "https://’ : "http://" 14 i_SfRVrR[ "SrRV("R_NAMr" J 15 (i_SERVfcR('SERVER_P0KT'] W ? 16 $_SERVER['SERVER_P0RT'] : null) 17 $_SrRVfR['SfRTPTJIAMr-J; <!-- Our bacic IITHI output --> <P> Your searched book <?= $tille ? "is titled Stille' hae <?- Sid f “the TD Sid." : "an invalid 70." ?> </p> < href="<?= bascURL() ?>">Hone</ >< /> < hret-“< ?- SgondllRI ?>”X3ood I ink</ >< /> < href="<?= jbadUKL ?>">Bad Link</ ->< /> nctwi?
anon,it-юмор,geek,Прикольные гаджеты. Научный, инженерный и айтишный юмор
Еще на тему