Hi All,

I am having three textboxes which will autosuggest accordingly. I am able to get the values statically but i need it through my database. I dont know how to call php values from another page to pass in jquery. For three textboxes i will be using three different php pages. I don't know if i have to call JSON format or post values from php page.Can anyone help me how to get this.

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RGBSI: Jobs</title>
<link rel="stylesheet" type="text/css" href="css/css1.css" media="screen"/>
        <link href="styles/examples-offline.css" rel="stylesheet" />
        <link href="styles/kendo.default.min.css"rel="stylesheet" /> 
        <link href="styles/kendo.common.min.css" rel="stylesheet" />
         <script src="js/jquery.min.js"></script>
        <script src="js/kendo.web.min.js"></script>
        <script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
    $(function() {
        var availableTags = [  // i want this values to be called from php page
            "Dot Net",
            "Need PHP",
            "Java with 3 years",
            "RGBSI2"                    ];
        $( "#title" ).autocomplete({
            source: availableTags

        var availableTagss = [
                         $( "#skills" ).autocomplete({
                        	 source: availableTagss
                         var availableTagsd = [
                                          $( "#location" ).autocomplete({
                                              source: availableTagsd


<div class="cl"></div>
<div class="search">
<form method="post" action="searchjob.php"> 

<input type="text"  id="title" name="title"  />
<input type="text" id="skills" name="skill"  />
<input type="text" id="location" name="location"  />
<input type="submit" value="Search" name="submit"/>




The below is my php code from another php pages

PHP Code:


mysql_query("Select title from jobs ");
$result mysql_fetch_array($query2))