$( "#tags" ).autocomplete({ source: 'source.php' }); }); </script> </head> <body> <?php if (isset($_POST['CARI'])) { $kunci = $_POST['KUNCI']; $db2 = new searching(); $db2->cari($kunci); } ?> <form method="post" action="index.php"> <div class="ui-widget"> <input type ='text' name = 'KUNCI' placeholder="Inputkan Nama Disini" id="tags"> </div><!--end of ui widget--> <input type ='submit' name = 'CARI' value='CARI'> </form> </body> </html>