<?php
include_once("autoComplete.php.class");
// **************************************************************
// Use one of the suggested approaches (uncomment to see examples)
// **************************************************************
// dont read from session , use space char as delimiter for text file
// make sure test_doc.txt file resists at the same directory of PHP source
// $handle = new autoComplete("test_doc.txt",0,' ');
// Normal usage (File Name resists on same directory of PHP files , read from session)
// make sure dict.txt file resists at the same directory of PHP source
$handle = new autoComplete("dict.txt");
// read text file from a remote location
//$handle = new //autoComplete("remote_file.txt",0,"\n","http://www.damkasoft.com/temp/");
// overide all default parameters : file name ,read from sesstion ,remote location,form width , select color , unselect color (background)
//$handle = new autoComplete("remote_file.txt",0,"\n","http://www.damkasoft.com/temp/",100,"blue","red");
echo "<HTML><HEAD>";
// place any JS Code here
echo $handle->JS_Src();
echo "</HEAD><BODY>";
echo "This is an AutoComplete Example : <br>";
echo $handle->HTML_Src();
// place any HTML code here
echo "</BODY></HTML>";
?>