Codice PHP:
<form id="formName" action="javascript:completeAHAH.likeSubmit('ricevo3.php', 'POST', 'formName', 'result');">    
<table id="tabella">
<tr>
<td>Cliente:</td>
<td><input type="text" id="client" name="client" value="ForMe s.r.l." disabled="true"></td>
</tr>
<tr>
<td>Cliente Finale:</td>
 <?php 
function cliente(){
    
$query="SELECT Ragione_Sociale FROM db_clienti";
    
$ris mysql_query($query);
    while (
$value=mysql_fetch_array($ris)){
        echo 
"<option>".$value['Ragione_Sociale']."</option>";
    }
    }
?> 
<td><select id="client2" name="client2">
<?php cliente(); ?>
</select></td>
</tr>
<tr>
<td>Venditore:</td><td>
<select id="vendit" name="vendit">
<option value="Alessandro">Alessandro</option>
<option value="Marco">Marco</option>
<option value="Milano">Milano</option>
</select></td>
</tr>
<tr>
<td>Data Ordine:</td><td><input type="text" id="sel3" name="date3" size="20">
<button type="reset" id="f_trigger_b">Calendario</button>
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "sel3",      // id of the input field
        ifFormat       :    "%d/%m/%Y",       // format of the input field
        showsTime      :    false,            // will display a time selector
        button         :    "f_trigger_b",   // trigger for the calendar (button ID)
        singleClick    :    false,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)
    });
</script></td>
</tr>
<tr>
<td>Data Consegna:</td><td><input type="text" id="sel4" name="date4" size="20">
<button type="reset" id="f_trigger_c">Calendario</button>
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "sel4",      // id of the input field
        ifFormat       :    "%d/%m/%Y",       // format of the input field
        showsTime      :    false,            // will display a time selector
        button         :    "f_trigger_c",   // trigger for the calendar (button ID)
        singleClick    :    false,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)
    });
</script></td>
</tr>
<tr>
<td>Pagamento:</td><td><input type="text" id="list2" name="list2" value="Pagamento 90gg" disabled="true"></td>
</tr>
<tr>
<td>Sconto (%):</td><td><input type="text" id="scont" name="scont" value="8%" disabled="true"></td>
</tr>
<tr>
<td>Articoli:</td><td><input type="text" value="" name="findme" id="findme"> </td>
<td>
</td>
</tr>
<tr>
<td>Consegna Solo Completo:</td><td>
<select id="cons_compl" name="cons_compl">
<option value="SI">SI</option>
<option value="NO">NO</option>
</select></td>
</tr>
<tr>
<td>Note:</td><td><textarea id="not" name="not" value="" cols="40" rows="5"></textarea></td>
</tr>
<tr>
<td colspan="2"><center><input type="submit" value="Inserisci Ordine" onclick="return Conferma();"></center></td>
</tr>
</form></table>
Al momento sono messo così
Cioè ho solo creato il form, come vedi dove c'è la scritta articoli al momento c'è solo una text che farà l'autocompletamento.

Il dump del db_clienti:
Codice PHP:
CREATE TABLE IF NOT EXISTS `db_clienti` (
  `
IDsmallint(10NOT NULL AUTO_INCREMENT,
  `
Ragione_Socialevarchar(100COLLATE utf8_unicode_ci NOT NULL,
  `
Riferimentovarchar(200COLLATE utf8_unicode_ci NOT NULL,
  `
Indirizzovarchar(50COLLATE utf8_unicode_ci NOT NULL,
  `
CAPvarchar(5COLLATE utf8_unicode_ci NOT NULL,
  `
Cittavarchar(50COLLATE utf8_unicode_ci NOT NULL,
  `
Provinciavarchar(5COLLATE utf8_unicode_ci NOT NULL,
  `
PIVAvarchar(20COLLATE utf8_unicode_ci NOT NULL,
  `
C_Fiscalevarchar(20COLLATE utf8_unicode_ci NOT NULL,
  `
Telefonovarchar(20COLLATE utf8_unicode_ci NOT NULL,
  `
Faxvarchar(20COLLATE utf8_unicode_ci NOT NULL,
  `
Cellularevarchar(20COLLATE utf8_unicode_ci NOT NULL,
  `
Emailvarchar(40COLLATE utf8_unicode_ci NOT NULL,
  `
Listinovarchar(15COLLATE utf8_unicode_ci NOT NULL,
  `
Pagamentovarchar(40COLLATE utf8_unicode_ci NOT NULL,
  `
Bancavarchar(100COLLATE utf8_unicode_ci NOT NULL,
  `
Filialevarchar(100COLLATE utf8_unicode_ci NOT NULL,
  `
ABIvarchar(10COLLATE utf8_unicode_ci NOT NULL,
  `
CABvarchar(10COLLATE utf8_unicode_ci NOT NULL,
  `
IBANvarchar(25COLLATE utf8_unicode_ci NOT NULL,
  
PRIMARY KEY (`ID`)
ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16 
Mentre il dump del db_ordini:
Codice PHP:
CREATE TABLE IF NOT EXISTS `db_ordini` (
  `
IDsmallint(6NOT NULL AUTO_INCREMENT,
  `
Ordinevarchar(50CHARACTER SET utf8 NOT NULL,
  `
Clientevarchar(100CHARACTER SET utf8 NOT NULL,
  `
Cliente_Finalevarchar(200CHARACTER SET utf8 NOT NULL,
  `
Venditorevarchar(30CHARACTER SET utf8 NOT NULL,
  `
Riferimentovarchar(200CHARACTER SET utf8 NOT NULL,
  `
Data_Ordinevarchar(15COLLATE utf8_unicode_ci NOT NULL,
  `
Data_Consegnavarchar(15CHARACTER SET utf8 NOT NULL,
  `
Pagamentovarchar(120CHARACTER SET utf8 NOT NULL,
  `
Scontovarchar(10CHARACTER SET utf8 NOT NULL,
  `
Consegna_Solo_Completovarchar(2CHARACTER SET utf8 NOT NULL,
  `
Notevarchar(400CHARACTER SET utf8 NOT NULL,
  
PRIMARY KEY (`ID`)
ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=27 
Ed il dump del db_magazzino:
Codice PHP:
CREATE TABLE IF NOT EXISTS `db_magazzino` (
  `
IDsmallint(5NOT NULL AUTO_INCREMENT,
  `
Codicevarchar(15CHARACTER SET utf8 NOT NULL,
  `
Descrizionevarchar(400CHARACTER SET utf8 NOT NULL,
  `
Prezzo_Acquistodecimal(10,2NOT NULL,
  `
Listino_1decimal(10,2NOT NULL,
  `
Listino_2decimal(10,2NOT NULL,
  `
Tessutovarchar(70CHARACTER SET utf8 NOT NULL,
  `
Colorivarchar(70CHARACTER SET utf8 NOT NULL,
  
PRIMARY KEY (`ID`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 
Non so sinceramente cosa possa aiutare, io ho postato tutto quello che ho