pour plus de détail voici mon code
//diverses initialisations
fichier = "devis.php";
chargement = new LoadVars();
chargement.onLoad = function() {
// _root.messages.text = "";
for (i=1; i<=this.entrees; i++) {
_root.messages.htmlText += "<b>Nom:</b> " + this["nom"+i] + "<br>";
_root.messages.htmlText += "<b>Profession:</b> " + this["profession"+i];
_root.messages.htmlText += "<b>Email:</b> " + this["email"+i];
_root.messages.htmlText += "<b>Delai:</b> " + this["delai"+i];
_root.messages.htmlText += "<b>Budget:</b> " + this["budget"+i];
_root.messages.htmlText += "<b>Projet:</b> " + this["projet"+i];
}
_root.messages.scroll = 0;
}
// fonction d'envoi du message
function envoyer() {
if (nom != "" && e_mail != "") {
chargement.nom = nom;
chargement.profession = selectedindex ;
chargement.email = email;
chargement.delai = delai;
chargement.budget = budget;
chargement.projet = projet;
chargement.send(fichier, chargement);
// après avoir envoyé le message,
// on réinitialise les champs.
effacer();
Selection.setFocus(nom);
}
}
function effacer() {
_root.nom = "";
_root.profession = "";
_root.email = "";
_root.delai = "";
_root.budget = "";
_root.projet = "";
}
effacer();
merci