Visualizzazione dei risultati da 1 a 3 su 3

Discussione: mail form MX

  1. #1

    mail form MX

    Ciao a tutti ho usato un mail form che richiama un file in php esterno e utilizza un combo box!
    Bene, ora avrei l'esigenza di aggingerne un'altro di combo box ma non so come modificare lo script associato per farlo funzionare, lo scipt è questo:

    stop();
    prod = new Array();
    prod[0] = ["Bulgari", "Informazioni sulla stanza BULGARI"];
    prod[1] = ["Cartier", "Informazioni sulla stanza CARTIER"];
    prod[2] = ["Chopard", "Informazioni sulla stanza CHOPARD"];
    prod[3] = ["Tiffany", "Informazioni sulla stanza TIFFANY"];
    prod[4] = ["Van Cleef e Arpels", "Informazioni sulla stanza VAN CLEEF E ARPELS"];
    prod[5] = ["Bucheron", "Informazioni sulla stanza BUCHERON"];
    prod[6] = ["Harry Winstor", "Informazioni sulla stanza HARRY WINSTOR"];
    prod[7] = ["David Morris", "Informazioni sulla stanza DAVID MORRIS"];
    prod[8] = ["Pomellato", "Informazioni sulla stanza POMELLATO"];
    for (i=0; i<prod.length; i++) {
    combo.addItem(prod[i][0], prod[i][1]);
    }
    function scegli_oggetto() {
    sbj = combo.getValue();
    trace(sbj);
    }
    function sendToPHP() {
    loadVariablesNum("send.php?submit=1", 0, "POST");
    trace(sbj);
    }
    ist = new Array(n, o, c,p,m,t,f, t_mail);
    cancel.onRelease = function() {
    for (var q = 0; q<ist.length; q++) {
    ist[q].text =undefined;
    }
    }

    chi mi può dare una mano grazie mille!!!!!

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    codice:
    stop(); 
    prod = new Array(); 
    prod[0] = ["Bulgari", "Informazioni sulla stanza BULGARI"]; 
    prod[1] = ["Cartier", "Informazioni sulla stanza CARTIER"]; 
    prod[2] = ["Chopard", "Informazioni sulla stanza CHOPARD"]; 
    prod[3] = ["Tiffany", "Informazioni sulla stanza TIFFANY"]; 
    prod[4] = ["Van Cleef e Arpels", "Informazioni sulla stanza VAN CLEEF E ARPELS"]; 
    prod[5] = ["Bucheron", "Informazioni sulla stanza BUCHERON"]; 
    prod[6] = ["Harry Winstor", "Informazioni sulla stanza HARRY WINSTOR"]; 
    prod[7] = ["David Morris", "Informazioni sulla stanza DAVID MORRIS"]; 
    prod[8] = ["Pomellato", "Informazioni sulla stanza POMELLATO"];
    
    secondo = new Array();
    secondo[0] = ["Bulgari", "Informazioni sulla stanza BULGARI"];
    secondo[1] = ["Cartier", "Informazioni sulla stanza CARTIER"]; 
    secondo[2] = ["Chopard", "Informazioni sulla stanza CHOPARD"]; 
    secondo[3] = ["Tiffany", "Informazioni sulla stanza TIFFANY"]; 
    .....
    
    
    for (i=0; i<prod.length; i++) {
    	combo1.addItem(prod[i][0], prod[i][1]); 
    } 
    for (i=0; i<secondo.length; i++) {
    	combo2.addItem(secondo[i][0], secondo[i][1]); 
    }
    combo1.setChangeHandler("scegli_oggetto1");
    combo2.setChangeHandler("scegli_oggetto2");
    function scegli_oggetto1(cb) { 
    	sbj1 = cb.getValue(); 
    	trace(sbj1);
    } 
    function scegli_oggetto2(cb) { 
    	sbj2 = cb.getValue(); 
    	trace(sbj2); 
    } 
    function sendToPHP() { 
    	loadVariablesNum("send.php?submit=1", 0, "POST"); 
    	trace(sbj); 
    } 
    ist = new Array(n, o, c,p,m,t,f, t_mail); 
    cancel.onRelease = function()
    { 
    	for (var q = 0; q<ist.length; q++) { 
    		ist[q].text =undefined; 
    	} 
    } ;

  3. #3
    grazie , grazie mille ci provo!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.