Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Simple Autocomplete
- call.php
- by Intrepid
- */
- $list = array(
- "Autocomplete",
- "AJAX is fun!",
- "Alphabeth",
- "Alphanumeric",
- "Bravo",
- "Charlie",
- "Connection",
- "Delta",
- "Echo",
- "Internetprotocol",
- "IP-Address",
- "Geo-IP",
- "GPU",
- "CPU",
- "Foxtrott",
- "Tango",
- "Torpedo",
- "TCP-Protocol",
- "Shark",
- "Shakespeare",
- "Speed",
- "South",
- "So",
- "X-Ray",
- "Yankee",
- "Zulu",
- "Monkey",
- "Mike",
- "Microphone",
- "Metapher",
- "Metatag");
- for($i=0; $i<count($list); $i++){
- if(strpos($list[$i], $_GET['str']) !== FALSE && strlen($_GET['str']) >= 2){
- echo str_ireplace($_GET['str'], '<b style="color: red;">'.$_GET['str'].'</b>', $list[$i]) . '<br>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement