janben: Datei wird nicht versendet...

Beitrag lesen

if (fAugenfarbe.getValue() == '')
        {
            Errors += '- Wie ist Deine Augenfarbe?\n';
            fAugenfarbe.setStyle('background-color', '#dddddd');
            if (FocusOn == null)
            {
                FocusOn = fAugenfarbe;
            }
        }

if (fBild1.value == '')
        {
            Errors += '- Bitte lade ein Bild hoch\n';
            fBild1.setStyle('background-color', '#dddddd');
            if (FocusOn == null)
            {
                FocusOn = fBild1;
            }
        }

if (fBild2.value == '')
        {
            Errors += '- Bitte lade ein zweite Bild hoch\n';
            fBild2.setStyle('background-color', '#dddddd');
            if (FocusOn == null)
            {
                FocusOn = fBild2;
            }
        }

if (fGefunden.value == '')
        {
            Errors += '- Wie hast Du uns gefunden?\n';
            fGefunden.setStyle('background-color', '#dddddd');
            if (FocusOn == null)
            {
                FocusOn = fGefunden;
            }
        }

if (fErfahren.value == '')
        {
            Errors += '- Wie bist du auf dieses hier aufmerksam geworden?\n';
            fErfahren.setStyle('background-color', '#dddddd');
            if (FocusOn == null)
            {
                FocusOn = fErfahren;
            }
        }

if (fUnterschied.value == '')
        {
            Errors += '- Warum sollen wir genau Dich nehmen?\n';
            fUnterschied.setStyle('background-color', '#dddddd');
            if (FocusOn == null)
            {
                FocusOn = fUnterschied;
            }
        }

if (FocusOn == null)
        {
                $('the_submit').disabled = true;
                var Scroller = new Fx.Scroll(window);
                Scroller.toElement($('the_submit')).chain(function()
                {
                    var Layer = new Element('div');
                    Layer.setHTML('Ihre Daten werden gesendet.<br />Bildübertragungen können eine Weile in Anspruch nehmen, haben Sie bitte ein wenig Gedult');
                    Layer.setStyles({
                             position: 'absolute'
                            ,'font-size': '12px'
                            ,'font-family': 'monospace'
                            ,color: '#BF0000'
                            ,'padding': '10px'
                            ,'padding-right': '30px'
                            ,'border': '1px solid #BF0000'
                            ,'background': '#bbb'
                    });
                    var wSize = window.getSize();
                    $E('body').adopt(Layer);

console.log(wSize.scroll);
                    console.log(wSize.size);
//                    var top = wSize.scroll.y + ((wSize.size.y - 20 - Layer.offsetHeight) / 2);
//                    var left = ((wSize.size.x - 20 - Layer.offsetWidth) / 2);
//                    Layer.setStyles({
//                                 top: top
//                                ,left: left
//                    });

var pos = $('luck').getCoordinates();
                    Layer.setStyles({
                                 top: pos.top
                                ,left: pos.left
                    });
                });
            return true;
        }
        else
       {
            $('error_msg').setStyle('display', '');
//            alert(Errors);
            FocusOn.focus();
            return false;
        }
    }
</script>

</head>

<body>

<table width="100%" border="0">
  <tr>
    <td scope="row"><img src="/img/miss.jpg" alt="Bewerbung" width="740" height="85" /></td>
  </tr>
  <tr>
    <td scope="row"><hr /></td>
  </tr>
</table>
<br />

<span style="color: red;background: url(/img/error.gif) no-repeat #dddddd; padding-left: 20px" id="error_msg">bitte füllen Sie alle grau hinterlegten Felder aus</span>
  <br />
  <?php
  if (true === $Send)
  {
      ?>

<span style="color: green;background: url(/img/accept.gif) no-repeat #dddddd; padding-left: 20px">Ihre Nachricht wurde gesendet</span>
  <br />
      <?php
  }
  ?>

<table width="100%" border="0">
  <tr>
    <td scope="row"><p class="Stil1">wir sind gespannt auf DEINE
      Bewerbung zu XXX</p>
      <p class="Stil1"> und w&uuml;rden gern... </font></p>
      <p class="Stil1"> ...ein paar pers&ouml;nliche
    Eckdaten von Dir erfahren</p></td>
  </tr>
</table>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return check_contact_form();">
  <table width="100%" border="0">
    <tr>
      <td width="16%" height="27" scope="row"><span class="Stil2">Vorname:</span></td>
      <td width="84%"><input name="vorname" type="text" class="name_input" id="vorname" size="70" /></td>
    </tr>
    <tr>
      <td height="27" class="Stil2" scope="row">Nachname:</td>
      <td><input name="nachname" type="text" class="name_input" id="nachname" size="70" /></td>
    </tr>
    <tr>
      <td height="27" scope="row"><span class="Stil2">Telefon:</span></td>
      <td><input name="telefon" type="text" class="name_input" id="telefon" size="70" /></td>
    </tr>
    <tr>
      <td height="27" scope="row"><span class="Stil2">eMail Adresse:</span></td>
      <td><input name="email" type="text" class="name_input" id="email" size="60" /></td>
    </tr>
    <tr>
      <td height="27" scope="row"><span class="Stil2">Deine WebSeite: </span></td>
      <td><input name="webseite" type="text" class="name_input" id="webseite" size="60" /></td>
    </tr>
  </table>
  <table width="100%" border="0">
    <tr>
      <td width="16%" class="Stil2" scope="row">Ich bin: </td>