Tobias Klenk
Grünschnabel
Hallo, ich versuche schon Stunden lang das Problem zu lösen, warum im IE das Absenden von dem Formular nicht geht aber unter FF gehts !
Woran kann das liegen ?
Hat das was mit dem Chapter zu tun, ist das was hinterlegt oder einfach nur mit dem Absenebutton ?
Hier der Auszug:
Woran kann das liegen ?
Hat das was mit dem Chapter zu tun, ist das was hinterlegt oder einfach nur mit dem Absenebutton ?
Hier der Auszug:
HTML:
<?php
srand((double)microtime() * 1000000);
$fgwCaptchaId3 = rand(0, 32000);
?>
<script language="JavaScript">
//<![CDATA[
var validate, required, captcha, nocaptcha, first;
/* */
var fgwCaptchaId3 = <?php echo $fgwCaptchaId3; ?>;
/* */
var http_obj = null;
function check3() {
validate = false;
required = false;
captcha = false;
nocaptcha = false;
first = null;
var pattern = /.*\@.*\..*/;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.firma.value == "") {
document.sendform3.firma.className = 'txh';
if (!first)
first = 'firma';
required = true;
} else
document.sendform3.firma.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.branche.value == "") {
document.sendform3.branche.className = 'txh';
if (!first)
first = 'branche';
required = true;
} else
document.sendform3.branche.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.nname.value == "") {
document.sendform3.nname.className = 'txh';
if (!first)
first = 'nname';
required = true;
} else
document.sendform3.nname.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.strasse.value == "") {
document.sendform3.strasse.className = 'txh';
if (!first)
first = 'strasse';
required = true;
} else
document.sendform3.strasse.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.plzort.value == "") {
document.sendform3.plzort.className = 'txh';
if (!first)
first = 'plzort';
required = true;
} else
document.sendform3.plzort.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.telefon.value == "") {
document.sendform3.telefon.className = 'txh';
if (!first)
first = 'telefon';
required = true;
} else
document.sendform3.telefon.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if ((pattern.test(document.sendform3.email.value)) == false) {
validate = true;
if (!first)
first = 'email';
}
/* */
/* */
/* */
if (document.sendform3.email.value == "") {
document.sendform3.email.className = 'txh';
if (!first)
first = 'email';
required = true;
} else
document.sendform3.email.className = 'tx';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
if (document.sendform3.fgwcaptchacode.value) {
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("Opera") == -1) {
try {
http_obj = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
try {
http_obj = new XMLHttpRequest();
} catch(e) {
}
}
} else
http_obj = new XMLHttpRequest();
if (!http_obj)
return;
var query = 'id=' + fgwCaptchaId3 + '&code=' + document.sendform3.fgwcaptchacode.value ;
http_obj.open('post', '../../w2dcpchk.php', true);
http_obj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_obj.setRequestHeader("Content-length", query.length);
http_obj.setRequestHeader("Connection", "close");
http_obj.onreadystatechange = check_result3;
http_obj.send(query);
} else {
document.sendform3.fgwcaptchacode.className = 'txh';
http_obj = null;
nocaptcha = true;
check_result3();
}
/* */
}
function check_result3() {
/* */
if (http_obj && http_obj.readyState == 4) {
var response = http_obj.responseText;
if (response == 'ok')
document.sendform3.fgwcaptchacode.className = 'tx';
else {
document.sendform3.fgwcaptchacode.className = 'txh';
document.sendform3.fgwcaptchacode.value = '';
captcha = true;
fgwCaptchaId3 = response;
document.sendform3.fgwcaptchaid.value = response;
document.getElementById('captchaimg3').src = '../../w2dcpimg.php?id=' + response;
if (!first)
first = 'fgwcaptchacode';
}
} else if (http_obj)
return;
/* */
var alerts = new Array();
if (validate)
alerts.push('Bitte geben Sie eine gültige E-Mail-Adresse ein.');
if (required)
alerts.push('Bitte füllen Sie alle Pflichtfelder aus.');
if (captcha)
alerts.push('Der Sicherheitscode ist falsch.');
if (nocaptcha)
alerts.push('Bitte füllen Sie den Sicherheitscode aus, dieser dient als Schutz vor Missbrauch.');
if (alerts.length) {
document.getElementById('myerror').innerHTML = alerts.join("<br />") + '<br /> ';
if (first) {
eval('document.sendform3.' + first + '.focus();');
eval('document.sendform3.' + first + '.select();');
}
} else {
document.sendform3.method = "POST";
document.sendform3.action = "../../w2dfgw.php";
document.sendform3.submit();
return true;
}
}
//]]>
</script>
<form name="sendform3" onsubmit="check3(); return false;" enctype="application/x-www-form-urlencoded">
<table cellpadding="0" cellspacing="5" class="formtab pluginwidth">
<tr>
<td colspan="2" class="h" id="myerror"></td>
</tr>
<input type="hidden" name="fgwemail" value="5744049d92110df02">
<input type="hidden" name="fgwsubject" value="Anfrage BHP">
<input type="hidden" name="fgwreturnurl" value="./firmenkunden/firmenrechtschutzversicherung/firmenrechtschutzversicherung.php">
<!--Text-->
<tr><b>BITTE BEACHTEN SIE! Unwahre/falsche und unvollständige Kontaktdaten führen dazu, dass Ihre Anfrage NICHT bearbeitet wird!</b>
<td>Firma *</td>
<td><input class="tx" type="text" name="firma" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>Branche *</td>
<td><input class="tx" type="text" name="branche" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>Vorname</td>
<td><input class="tx" type="text" name="vname" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>Nachname *</td>
<td><input class="tx" type="text" name="nname" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>Strasse *</td>
<td><input class="tx" type="text" name="strasse" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>PLZ und Ort *</td>
<td><input class="tx" type="text" name="plzort" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>Telefon *</td>
<td><input class="tx" type="text" name="telefon" value="" /></td>
</tr>
<!--Text-->
<tr>
<td>E-Mail *</td>
<td><input class="tx" type="text" name="email" value="" /></td>
</tr>
<!--Textarea-->
<tr>
<td valign="top">Nachricht</td>
<td><textarea class="tx" name="nachricht"></textarea></td>
</tr>
<!--captcha-->
<tr><td> </td></tr>
<tr>
<td>Sicherheitscode</td>
<td><img id="captchaimg3" src="w2dcpimg.php?id=<?php echo($fgwCaptchaId3); ?>" alt="" style="width: 120px; height: 30px; border: 0"></td>
</tr>
<tr>
<td>Sicherheitscode wiederholen *</td>
<td>
<input type="text" class="tx" name="fgwcaptchacode" maxlength="6" style="width: 80px; " />
</td>
</tr>
<input type="hidden" name="fgwcaptchaid" value="<?php echo($fgwCaptchaId3); ?>" />
<input type="hidden" name="fgwuid" value="5744049d92110df02" />
<tr>
<td colspan="2"></td>
</tr>
</table>
<br />
<table cellpadding="0" cellspacing="5" class="completewidth">
<tr>
<td style="text-align: right">
<input type="image" src="./images/w2dsbmt.gif" value="submit" usemap="0" style="border: 0" />
</td>
</tr>
</table>
</form>
Zuletzt bearbeitet von einem Moderator: