Originally Posted by Mav3n
For this to work you will first have to know the basic concept of AJAX. After you know this, you can do it very easily.
Following are few codes that might help you:
1. You should have a form with input box and put a onSubmit function. The function should look like this:
2. The function should look some thing like this:
3. Now this function acts as an AJAX Engine and would communicate with test_ajax.php (in this example code) to process your request (access the MySQL db and look for names that match this entry). Now the file which would actually process your request would be test_ajax.php where you can put codes so that it queries your mysql database and echoes the result.
xhReq = createXMLHttpRequest();
xhReq.open('get', 'test_ajax.php?id='+ document.ajax_ex.ajax_select.selectedIndex);
xhReq.onreadystatechange = onSumResponse;
<self promotion is not allowed>