Código PHP:
<script language="Javascript" src="autosuggest.js"></script>
<form>
<fieldset>
<legend>State</legend>
<p>(Up and down arrows highlight a suggestion. Tab key inserts the highlighted suggestion. Escape hides the list.)</p>
<label for="state">Please enter a State:</label>
<input type="text" name="state" id="state" />
<script language="Javascript">
var states = new Array("Alabama","Alaska","American Samoa","Arizona","Arkansas","California",
"Colorado","Connecticut","Delaware","District of Columbia",
"Federated States of Micronesia","Florida","Georgia","Guam","Hawaii","Idaho","Illinois",
"Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine",
"Marshall Islands","Maryland","Massachusetts","Michigan","Minnesota","Mississippi",
"Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico",
"New York","North Carolina","North Dakota",
"Northern Mariana Islands","Ohio","Oklahoma","Oregon","Palau","Pennsylvania","Puerto Rico",
"Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont",
"Virgin Islands","Virginia","Washington","West Virginia","Wisconsin","Wyoming",
"Armed Forces Africa","Armed Forces Americas","Armed Forces Canada",
"Armed Forces Europe","Armed Forces Middle East","Armed Forces Pacific");
new AutoSuggest(document.getElementById('state'),states);
</script>
<p>
<input type="submit" />
</p>
</fieldset>
</form>
Mi pregunta es: ¿cómo hago para suplantar ese array dentro del javascript por la consuta a la base en PHP?
Gracias a todos. MArx.