Manfred
Mitglied Expert Boarder
| Beiträge: 21 |   |
|
Re:Text Feld - 19/02/2009 08:30
Hallo zusammen, ich hätte da auch noch eine Frage zu dem Textfeld, wo unten drunter der Anhang ist.
Wie kann ich dieses Textfeld ausblenden lassen? Ich bräuchte nämlich nur die Anhang Funktion unter anderem.
Was habe ich getan: Zuerst habe ich die felder.demo1.php auf felder.php umbenannt und auf meinen Bedarf angepasst, die sieht nun so aus:
------------------------------------------------- // Kein direckter Zugang defined( '_VALID_B4YF' ) or die( 'Restricted access' );
// Feld 0: $b4yf_felder[0] = "input"; // Art des Formularfeldes $b4yf_felder_text[0] = "Dein Vorname - Nickname: "; // Text der vor dem Eingabefeld steht $b4yf_felder_text_mail[0] = "Vorname:"; // Text der vor dem Inhalt des Formularfeldes in der E-Mail steht $b4yf_felder_error[0] = "Bitte gebe Deinen Vornamen - Nicknamen ein!"; // Fehlermeldung wenn man das Eingabefeld nicht ausf?t
// Feld 1: $b4yf_felder[1] = "select"; // Art des Formularfeldes $b4yf_felder_text[1] = "Bitte wähle Dein Anliegen oder Deine Beschwerde aus: "; // Text der vor dem Eingabefeld steht $b4yf_felder_option[1][0] = "Bescherde gegen ein Mitglied:"; // Auswahlmögichkeit 1 (fängt auch mit [0] an!!!) $b4yf_felder_option[1][1] = "Beschwerde gegen ein Admin:"; // Auswahlmögichkeit 2 $b4yf_felder_option[1][2] = "Sonstiges:"; // Auswahlmögichkeit 3 $b4yf_felder_text_mail[4] = "Mein Anliegen bzw. meine Beschwerde:";
// Feld 2: $b4yf_felder[2] = "textarea"; // Art des Formularfeldes $b4yf_felder_text[2] = "Erläutere bitte Dein Anliegen, bzw. Deine Beschwerde: "; // Text der vor dem Eingabefeld steht $b4yf_felder_text_mail[2] = "Mein Anliegen bzw. meine Beschwerde:"; // Text der vor dem Inhalt des Formularfeldes in der E-Mail steht $b4yf_felder_rows[2] = 3; // Anzahl der Zeilen des Textfeldes $b4yf_felder_error[2] = "Bitte fülle das -Anliegen, bzw. meiner Beschwerde- Feld aus:"; // "no" ... bedeutet keine ?erpr?ng auf Eingabe (daher optional)
?> --------------------------------------------------------
Jetzt ist es allerdings so, das nur wenn ich zumindest die ersten 3 Felder "Deine eMail Adresse", Dein Vorname - Nickname, Erläutere bitte Dein Anliegen, bzw. Deine Beschwerde, Anhang" mit schicke, kommt die eMail korrekt an, besser gesagt, wird mir auch alles angezeigt.
Lasse ich Das "Text" Feld aus, und schicke auch keinen Anhang mit, kommt die eMail so an
------------------------------------------------------ Reply-To: ma-dietrich@versanet.de<ma-dietrich@versanet.de>
X-Mailer: B4YFormmailer X-Mailer-Version: v2.0.1 X-IP:88.130.207.144 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=1e386f445950412aafb5af2392b209c5 Message-Id: <20090219071840.C40255311CE5@alfa3010.alfahosting-server.de> Date: Thu, 19 Feb 2009 08:18:40 +0100 (CET)
This is a multi-part message in MIME format --1e386f445950412aafb5af2392b209c5 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
<?xml version='1.0' encoding='iso-8859-1'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <title>B4YFormmailer - Contact me</title> <style type="text/css"> /**************************************************/
/* NUR bei der Verwendung als eigenständige Seite */
/**************************************************/
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
background-color: #4D4D4D;
font-size: 13px;
}/**************************************/
/* FIXE - im Code verwendete - STYLES */
/**************************************/
/* Label - alle Beschreibungstexte der Felder */
label {
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #ffffff;
}
/* einzeilige Texteingabefelder */
.b4yf_inputfeld {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
width: 99%;
color: #000000;
background-color: #FFFFFF;
margin-bottom: 1px;
border: 1px solid #AAAAAA;
}
/* mehrzeilige Texteingabefelder */
.b4yf_textarea {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
width: 99%;
color: #000000;
background-color: #FFFFFF;
margin-bottom: 1px;
border: 1px solid #AAAAAA;
}
/* Select-Auswahlfeld */
.b4yf_selectfeld {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
width: 99%;
color: #000000;
background-color: #FFFFFF;
border: 1px solid #AAAAAA;
}
/* Infotext aus den variablen Feldern */
.b4yf_infotext {
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
padding-top: 10px;
padding-bottom: 10px;
font-style: normal;
font-weight: bold;
color: #ffffff;
}
/* Eingabefeld und "Durchsuchen-Button" für das File-Feld */
.b4yf_filefeld {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
/* Style-Klasse für den <div> Tag des Sicherheitscodes */
.b4yf_codefeld {
color: #000000;
background: #FFFFFF url(images/security.png) 10px no-repeat;
border: 1px solid #AAAAAA;
text-align: center;
/* -moz-border-radius:10px; */ /* nicht W3C konform */
margin: 0px 60px 20px 60px;
text-align: right;
padding: 10px;
}
/* Securitycode-Eingabefeld */
.b4yf_securite_code {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
width: 92px;
color: #000000;
background-color: #FFFFFF;
border: 1px solid #AAAAAA;
}
/* E-Mail: Beschreibung der Felder */
.b4yf_mail_value {
font-size: 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
padding-bottom: 10px;
}
/* E-Mail: übergebene Werte */
.b4yf_mail_beschreibung {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
/******************************/
/* TEMPLATESPEZIFISCHE STYLES */
/******************************/
.b4yf_fieldset {
border: 1px dashed #cccccc;
margin: 5px 5px;
padding: 5px;
}
p {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.b4yf_rahmen {
width: 400px;
border : 1px solid #AAAAAA;
color: #000000;
background-color: #4D4D4D;
margin: 5px;
padding: 0px;
}
.b4yf_copyright {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0px;
padding: 4px;
border-top: 1px solid #AAAAAA;
}
.b4yf_error {
padding-top : 10px;
padding-bottom : 10px;
color: #FF0000;
background-color: #F5F5F5;
font-size: 14px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
height: 25px;
}
.b4yf_button {
width: 150px;
text-align: center;
}
.b4yf_align_right {
text-align: right;
}
.b4yf_align_center {
text-align: center;
}
a.b4yf:link {
text-decoration : none;
color : #666666;
background-color: #F5F5F5;
}
a.b4yf:visited {
text-decoration : none;
color : #666666;
background-color: #F5F5F5;
}
a.b4yf:hover {
text-decoration : underline;
color : #000000;
background-color: #F5F5F5;
}
a.b4yf:active {
text-decoration : none;
color : #000000;
background-color: #F5F5F5;
}
/****************************************/
/* STYLES für die Anzeige des Testmodus */
/****************************************/
h1 {
font-size: 1.6em;
text-align: center;
}
.b4yf_tm_rahmen {
color: #000000;
background: #EEEEEE;
border: 1px solid #666666;
}
.b4yf_tm_kopf {
color: #000000;
background: #666666 url(../../testmod/templates/images/logo.gif) 10px no-repeat;
height : 60px;
padding: 5px;
margin-bottom: 30px;
}
.b4yf_tm_titel {
margin-top: 0px;
margin-left: 70px;
margin-right: 50px;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 3.0em;
line-height: 40px;
color: #EEEEEE;
background-color: #666666;
font-weight: bold;
}
.b4yf_tm_subtitel {
margin-top: -13px;
margin-left: 135px;
margin-right: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 1.0em;
line-height: 35px;
color: #BBBBBB;
background-color: #666666;
font-weight: bold;
}
.b4yf_tm_vorheb {
color: #00ff00;
background-color: #666666;
font-size: 1.1em;
}
.b4yf_tm_fieldset {
border: 1px solid #666666;
margin: 15px 5px;
padding: 10px;
}
.b4yf_tm_legend {
font-size: 1.1em;
font-weight: bold;
color: #FFFFFF;
background-color: #999999;
padding: 2px 10px;
border: 1px solid #666666;
}
.b4yf_tm_area {
height: 300px;
overflow: scroll;
background-color:#DDDDDD;
border: 1px solid #cccccc;
color: #000000;
padding: 5px;
}
.b4yf_tm_bottom {
border-top: #666666 solid 1px;
color: #000000;
background-color: #EEEEEE;
padding: 2px;
text-align: center;
} </style>
</head> <body>
<div class="b4yf_rahmen"> <fieldset class="b4yf_fieldset"> <span class="b4yf_mail_beschreibung">Vorname: </span>
<span class="b4yf_mail_value">Manfred</span><br >
<span class="b4yf_mail_beschreibung">Bitte wähle Dein Anliegen oder Deine Beschwerde aus: </span>
<span class="b4yf_mail_value">Bescherde gegen ein Mitglied:</span>
<span class="b4yf_mail_beschreibung">Mein Anliegen bzw. meine Beschwerde:</span>
<span class="b4yf_mail_value">Testeintrag beim "Erläutere bitte Dein Anliegen, bzw. Deine Beschwerde: " Feld</span><b >
<span class="b4yf_mail_beschreibung">Nachricht:</span><br /> <span class="b4yf_mail_value"></span><br /><br /> <span class="b4yf_mail_beschreibung">Absender:</span> <a href="mailto:ma-dietrich@versanet.de" class="b4yf">ma-dietrich@versanet.de</a> </fieldset> <div class="b4yf_copyright b4yf_align_center"> <a href="http://b4yformmailer.hoerandl.com/" class="b4yf">B4YFormmailer v2.0.1</a> powered by <a href="http://www.hoerandl.com/" class="b4yf">HOERANDL.com</a> </div> </div>
</body> </html> --1e386f445950412aafb5af2392b209c5-- ---------------------------------------------------------
Wie gesagt, das "Text" Feld bräuchte ich nicht
Ich darf mich recht herzlich für jegliche Art von Hilfen bedanken
Gruß Manfred |