Noname Dogs
Neues Mitglied
Guten Tag, hallo zusammen!
Woran kann es liegen, wenn das Senden des Antrages nicht funktioniert?
Ein Kollege hat mich neulich angeschrieben, nachdem sie das fertig ausgefüllte Antragsformular "Antrag gesendet" hat, nichts passiert!
Kann mir bitte einer sagen was nicht richtig ist?
Woran kann es liegen, wenn das Senden des Antrages nicht funktioniert?
Ein Kollege hat mich neulich angeschrieben, nachdem sie das fertig ausgefüllte Antragsformular "Antrag gesendet" hat, nichts passiert!
Kann mir bitte einer sagen was nicht richtig ist?
Code:
<script language="JavaScript" type="text/javascript">// <![CDATA[// function Pruefen04() testet die Eingaben
function Pruefen04()
{
// test feld name
if(document.Antragsformular.nachname.value == "")
{
alert("Bitte den Nachnamen eintragen!");
document.Antragsformular.nachname.focus();
return false;
}
// test feld vorname
if(document.Antragsformular.vorname.value == "")
{
alert("Bitte den Vornamen eintragen!");
document.Antragsformular.vorname.focus();
return false;
}
// test feld geb
if(document.Antragsformular.gebtag.value < 1 || document.Antragsformular.gebtag.value > 31)
{
alert("Der eingetragene Geburtstag ist nicht gültig!");
document.Antragsformular.gebtag.focus();
return false;
}
chkZ = 0;
for(i=0;i<document.Antragsformular.gebtag.value.length;++i)
if(document.Antragsformular.gebtag.value.charAt(i) < "0" || document.Antragsformular.gebtag.value.charAt(i) > "9")
chkZ = -1;
if(chkZ == -1)
{
alert("Der eingetragene Geburtstag ist nicht gültig!");
document.Antragsformular.gebtag.focus();
return false;
}
if(document.Antragsformular.gebmon.value < 1 || document.Antragsformular.gebmon.value > 12)
{
alert("Der eingetragene Geburtsmonat ist nicht gültig!");
document.Antragsformular.gebmon.focus();
return false;
}
chkZ = 0;
for(i=0;i<document.Antragsformular.gebmon.value.length;++i)
if(document.Antragsformular.gebmon.value.charAt(i) < "0" ||
document.Antragsformular.gebmon.value.charAt(i) > "9")
chkZ = -1;
if(chkZ == -1)
{
alert("Der eingetragene Geburtsmonat ist nicht gültig!");
document.Antragsformular.gebmon.focus();
return false;
}
if(document.Antragsformular.gebjahr.value < 1900 ||
document.Antragsformular.gebjahr.value > 2001)
{
alert("Das eingetragene Geburtsjahr ist nicht gültig!");
document.Antragsformular.gebjahr.focus();
return false;
}
chkZ = 0;
for(i=0;i<document.Antragsformular.gebjahr.value.length;++i)
if(document.Antragsformular.gebjahr.value.charAt(i) < "0" ||
document.Antragsformular.gebjahr.value.charAt(i) > "9")
chkZ = -1;
if(chkZ == -1)
{
alert("Das eingetragene Geburtsjahr ist nicht gültig!");
document.Antragsformular.gebjahr.focus();
return false;
}
// test feld stasse
if(document.Antragsformular.strasse.value == "")
{
alert("Bitte Ihre Straße und Hausnummer eintragen!");
document.Antragsformular.strasse.focus();
return false;
}
// test feld plz
if(document.Antragsformular.plz.value == "")
{
alert("Bitte Ihre Postleitzahl eintragen!");
document.Antragsformular.plz.focus();
return false;
}
chkZ = 0;
for(i=0;i<document.Antragsformular.plz.value.length;++i)
if(document.Antragsformular.plz.value.charAt(i) < "0" ||
document.Antragsformular.plz.value.charAt(i) > "9")
chkZ = -1;
if(chkZ == -1)
{
alert("Die Postleitzahl ist keine Zahl!");
document.Antragsformular.plz.focus();
return false;
}
// test feld ort
if(document.Antragsformular.ort.value == "")
{
alert("Bitte Ihren Wohnort eintragen!");
document.Antragsformular.ort.focus();
return false;
}
// test feld email
if(document.Antragsformular.email.value == "")
{
alert("Bitte die eMailadresse eintragen!");
document.Antragsformular.email.focus();
return false;
}
if(document.Antragsformular.email.value.indexOf('@') == -1)
{
alert("Ihre Eingabe für die Email-Adresse ist ungültig!");
document.Antragsformular.email.focus();
return false;
}
// test feld Mitgliedschaft
if (document.Antragsformular.art.value == "NEIN")
{
alert ("\n Sie haben keine Mitgliedschaft ausgewählt \n\nOhne Auswahl ist keine Bearbeitung möglich")
document.Antragsformular.art.focus();
return false;
}
// test feld checkbox
if(document.Antragsformular.agree.checked == false)
{
alert("Bitte die Satzung lesen!");
document.Antragsformular.agree.focus();
return false;
}
// test feld Zustimmung
if (document.Antragsformular.terms.value == "NEIN")
{
alert ("\n Sie haben leider nicht zugestimmt \n\nOhne Ihre Zustimmung ist keine Bearbeitung möglich")
document.Antragsformular.terms.focus();
return false;
}
// ende aller tests
return true;
}
// ]]></script>
<table style="width: 100%; border: #313131 1px solid;" border="0" cellspacing="0" cellpadding="5" bgcolor="#313131">
<tbody>
<tr>
<td>
<script language="JavaScript" type="text/javascript">// <![CDATA[
document.write('<form action="mailto:[email protected] ');
document.write('@');
document.write('[email protected] "');
document.write(' method="post" name="Antragsformular" onSubmit="return Pruefen04();" enctype="text/plain">');
// ]]></script>
<form action="mailto:[email protected] @[email protected] " enctype="text/plain" method="post">
</form>
Code:
<td>
<input type="submit" value=" Antrag senden" /> <input type="reset" value=" reset" />
</td>