Sobald ich auf die Schaltfläche „Senden“ klicke, wurde die E-Mail gesendet. Anstatt jedoch ausgewählte Werte zu senden, sendet es jeden Wert in der Liste. Ich kann nicht finden, was mir fehlt. Bitte schlagen Sie vor.
Soweit ich gesehen habe, ist darin kein Fehler aufgetreten. Aber ich denke, das Problem liegt im Kommunikationsteil.
Erstellt mit
var address = document.getElementById('faddress');
var optiona = document.getElementById('optiona');
var optionb = document.getElementById('optionb');
var optionc = document.getElementById('optionc');
var optiond = document.getElementById('optiond');
var optione = document.getElementById('optione');
var optionf = document.getElementById('optionf');
var optiong = document.getElementById('optiong');
var optionh = document.getElementById('optionh');
var optioni = document.getElementById('optioni');
var optionj = document.getElementById('optionj');
var sectiona = document.getElementById('sectiona');
function checkErrors(){
var error_count = 0;
if(error_count == 0){
document.getElementById('container').innerHTML = "Thank YouWe will get back to you shortly.
[url=https://www.google.co.uk/]
[img]viewsite.png[/img]
[/url] ";
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
if(this.responseText == "OKAY"){
}
}
};
xhttp.open("GET", "comm.php? address="+address.value+"&optiona="+optiona.value+"&optionb="+optionb.value+"&optionc="+optionc.value+"&optiond="+optiond.value+"&optione="+optione.value+"&optionf="+optionf.value+"&optiong="+optiong.value+"&optionh="+optionh.value+"&optioni="+optioni.value+"&optionj="+optionj.value+"§iona="+sectiona.value);
xhttp.send();
}
}
document.getElementById("submit_button").addEventListener("click", function(){
checkErrors();
});
Sobald ich auf die Schaltfläche „Senden“ klicke, wurde die E-Mail gesendet. Anstatt jedoch ausgewählte Werte zu senden, sendet es jeden Wert in der Liste. Ich kann nicht finden, was mir fehlt. Bitte schlagen Sie vor. Soweit ich gesehen habe, ist darin kein Fehler aufgetreten. Aber ich denke, das Problem liegt im Kommunikationsteil. Erstellt mit
[code]var address = document.getElementById('faddress'); var optiona = document.getElementById('optiona'); var optionb = document.getElementById('optionb'); var optionc = document.getElementById('optionc'); var optiond = document.getElementById('optiond'); var optione = document.getElementById('optione'); var optionf = document.getElementById('optionf'); var optiong = document.getElementById('optiong'); var optionh = document.getElementById('optionh'); var optioni = document.getElementById('optioni'); var optionj = document.getElementById('optionj'); var sectiona = document.getElementById('sectiona');
function checkErrors(){ var error_count = 0;
if(error_count == 0){
document.getElementById('container').innerHTML = "Thank YouWe will get back to you shortly. [url=https://www.google.co.uk/] [img]viewsite.png[/img] [/url] "; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { if(this.responseText == "OKAY"){
Ich möchte die neueste Phpmailer -Bibliothek mit Required_once () verwenden, anstatt mit Komponisten herumzuspielen. Ich hätte gerne eine reine XCopy -Bereitstellung mit minimaler Aufwand....
Ich benutze Phpmailer, um E -Mails zu senden, und ich möchte das Ergebnis erzielen, da Sendenpost sehr häufig ist. Daher möchte ich Phpmailer Timeout verwenden. Aber nicht funktioniert.
Mein Code...
Nun, ich habe hier ein System, das ein Passwort generiert und es per E -Mail sendet. Unten ist ein Beispiel dafür, wie es funktioniert. Fehler #2: Stream_Socket_Client (): Die Verbindung