• 22.07.2025, 00:44
  • Registrieren
  • Anmelden
  • Du bist nicht angemeldet.

 

Dr._Mohr

Senior Member

Anfrage Formular "Umbauen"

Donnerstag, 13. Januar 2005, 23:18

Hi,

ich möchte diese Formular so umbauen das es ganz einfach an eine Emailadresse geschickt wir, das ganze sollte möglichst einfach und unproblematisch geschehn

http://www.dr-eugen-mohr-kg.com/kontakt.html

der Code sieht so aus

teil 1

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<HTML>

 <HEAD>

 <TITLE>Anfragen an DR. EUGEN MOHR KG</TITLE>

 <META NAME="keywords" CONTENT="Gummierung, Auskleidung,Chromsäurefesten Materialien, Hartgummi, Weichgummi, Thermoplaste, Stahlbehälterbau, Druckbehälterbau, Kunststoffverarbeitung, Lüftungstechnik, Rohrleitungsbau, Umwelttechnik, Wartungsdienst, Herstellung, Kappenmutter,  Hutmutter, Korrosionsschutz, Edelstahl, Verarbeitung Titanverarbeitung, Edelstahlverarbeitung, service">

 <META NAME="description" CONTENT="Dr. Eugen Mohr KG - Wir beraten, planen und arbeiten für die Sicherheit und Erhaltung Ihrer Anlagen">

 <META NAME="ABSTRACT" CONTENT="Dr. Eugen Mohr KG - Wir beraten, planen und arbeiten für die

  Sicherheit und Erhaltung Ihrer Anlagen">

 <META NAME="page-topic" CONTENT="Dienstleistung">

 <META NAME="page-type" CONTENT="">

 <META NAME="audience" CONTENT="Alle">

 <META NAME="author" CONTENT="dr.eugen_mohr_kg@t-online.de.de">

 <META NAME="publisher" CONTENT="Raymond Scherzinger">

 <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">

 <META NAME="Content-Language" CONTENT="de">

 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD> 



<body bgcolor="#FFFFFF" text="#000000" background="images/dem_logo_smart2.jpg">
<p align="center">  </p>



<h3 align="center"><font size="7" face="arial" color="#006666"><b>Damit Keine 

  Fragen </b></font></h3>

<h3 align="center"><font size="7" face="arial" color="#006666"><b>unbeantwortet 

  bleiben</b></font></h3>

<h4 align="center"><font size="2" face="arial">Hier können Sie uns eine E-mail 

  Information zukommen lassen.</font> </h4>

<form action="/cgi-bin/formmail.cgi" method="POST">

  <div align="center"> 

    <input type="hidden" name="recipient"

    value="raymond.scherzinger@dr-eugen-mohr-kg.de">

    <input type="hidden"

    name="subject" value="Kontakt-Anfragen">

    <input type="hidden"

    name="redirect"

    value="http://www.dr-eugen-mohr-kg.de/deutsch/danke.html">

    <blockquote>  </blockquote>

  </div>

  <blockquote> 

    <h4 align="left">1.) Ein paar Fragen zu Ihrer Person</h4>

    <h4 align="center"> </h4>

    <div align="center"> 

      <table width="500" border="1" bordercolordark="#3834FF">

        <tr bgcolor="389CFF"> 

          <td height="24"> 

            <div align="center"><b>Persönliche Angaben</b></div>

          </td>

        </tr>

        <tr align="center" valign="middle" bgcolor="#489CC8"> 

          <td height="440"> 

            <table border="0">

              <tr> 

                <td width="200" bordercolor="#D0D0D0"> 

                  <input type="radio" checked name="Geschlecht" value="Herr">

                  Herr 

                  <input

    type="radio" name="Geschlecht" value="Frau">

                  Frau</td>

                <td width="252"> </td>

              </tr>

              <tr> 

                <td width="200" bordercolor="#D0D0D0"><i>Vorname: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="Vorname">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Name: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="realname">

Dr._Mohr

Senior Member

Re: Anfrage Formular "Umbauen"

Donnerstag, 13. Januar 2005, 23:19

teil 2

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
</td>

              </tr>

              <tr> 

                <td width="200"><i>Firma: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="Firma">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Straße/ Nr.: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="Strasse">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>PLZ.: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="PLZ">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Ort: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="Ort">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Land: </i></td>

                <td width="252"> 

                  <select name="Land">

                    <option value="Deutschland" selected>Deutschland</option>

                    <option value="Österreich">Österreich</option>

                    <option value="Schweiz">Schweiz</option>

                    <option value="Frankreich">Frankreich</option>

                    <option value="Niederlande">Niederlande</option>

                  </select>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Telefon: </i></td>

                <td width="252"> 

                  <input type="text" size="25"

                maxlength="50" name="Tel">

                </td>

              </tr>

              <tr> 

                <td width="200" height="38"><i>Fax:</i></td>

                <td width="252" height="38"> 

                  <input type="text" size="25"

                maxlength="50" name="Fax">

                </td>

              </tr>

              <tr> 

                <td width="200" height="32"><i>E-Mail: </i></td>

                <td width="252" height="32"> 

                  <input type="text" size="25"

                maxlength="50" name="email">

                </td>

              </tr>

              <tr> 

                <td width="200" height="32">²</td>

                <td width="252" height="32">²</td>

              </tr>

              <tr> 

                <td width="200" height="32"><i>Rücksprachen bitte per:</i></td>

                <td width="252" height="32"> 

                  <select name="Rücksprachen bitte per"

    size="1">

                    <option selected>Telefon</option>

                    <option>E-Mail</option>

                    <option>Fax</option>

                  </select>

                </td>

              </tr>

            </table>

          </td>

        </tr>

      </table>

    </div>

    <p align="center">²</p>

    <h4 align="left">2.) Um Ihre Anfrage schnellstens zu bearbeiten tragen Sie 

      bitte hier Angaben zu Ihrer <font color="#006666" size="4">Galvanikwanne</font> 

      ein. </h4>

  </blockquote>

  <div align="center"> 

    <blockquote> 

      <table border="1" width="503" bordercolordark="#3333FF">

Dr._Mohr

Senior Member

Re: Anfrage Formular "Umbauen"

Donnerstag, 13. Januar 2005, 23:19

Teil 3

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<tr bgcolor="389CFF"> 

          <td height="28"> 

            <div align="center"><font color="#0000FF"><b><font color="#000000">Angaben 

              zur Galvanikwanne</font></b></font></div>

          </td>

        </tr>

        <tr valign="middle" align="center" bgcolor="#489CC8"> 

          <td> 

            <table width="443" border="0">

              <tr> 

                <td width="200"><i>Lichte Länge:</i></td>

                <td width="267"> 

                  <blockquote></blockquote>

                  <p> 

                    <input type="text" size="20" name="Galvanikwanne Lichte Laenge in mm">

                    mm</p>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Lichte Breite:</i></td>

                <td width="267"> 

                  <input type="text" size="20" name="Galvanikwanne Lichte Breite in mm">

                  mm</td>

              </tr>

              <tr> 

                <td width="200"><i>Lichte Höhe:</i></td>

                <td width="267"> 

                  <input type="text" size="20" name="Galvanikwanne Lichte Hoehe in mm">

                  mm</td>

              </tr>

              <tr> 

                <td width="200"><i>Überlauf:</i></td>

                <td width="267"> 

                  <input type="radio" name="Ueberlauf" value="Ja" checked>

                  Ja 

                  <input type="radio" name="Ueberlauf" value="Nein">

                  Nein </td>

              </tr>

              <tr> 

                <td width="200"><i>Flansche nach DIN.:</i></td>

                <td width="267"> 

                  <input type="text" size="20" name="Galvanikwanne Flanche DIN">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Medium:</i></td>

                <td width="267"> 

                  <input type="text" size="20" name="Galvanikwanne Medium">

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Temperatur:</i></td>

                <td width="267"> 

                  <input type="text" size="20" name="Galvanikwanne Temperatur in C">

                  in C°</td>

              </tr>

              <tr> 

                <td width="200"><i>Wunsch Material:</i></td>

                <td width="267"> 

                  <select name="Galvanikwanne Wunschmaterial" size="1">

                    <option selected>> Bitte Auswählen</option>

                    <option>Stahlgummiert</option>

                    <option>Edelstahl</option>

                    <option>Titan</option>

                    <option>Kunststoff</option>

                  </select>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Reparaturwunsch vor Ort:</i></td>

                <td width="267"> 

                  <input type="checkbox" name="Galvanikwanne Reperatur vor Ort gewuenscht" value="ja">

                  (bitte ankreutzen falls gewünscht)</td>

              </tr>

              <tr> 

                <td width="200"><i></i></td>

                <td width="267">²</td>

              </tr>

              <tr> 

                <td width="200" valign="top"><i>Sonstige Bemerkungen:</i></td>

                <td width="267"> 

                  <textarea name="Galvanikwanne Bemerkungen" rows="5" cols="40"></textarea>

                </td>

              </tr>

            </table>

          </td>

        </tr>

      </table>

    </blockquote>

  </div>

Dr._Mohr

Senior Member

Re: Anfrage Formular "Umbauen"

Donnerstag, 13. Januar 2005, 23:20

Teil 4

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<blockquote> 

    <p align="center">²</p>

    <p><strong>3.) Um Ihre Anfrage schnellstens zu bearbeiten tragen Sie bitte 

      hier Angaben zu Ihrern </strong><font

    color="#0000FF"><strong><font color="#006666" size="4">Filterbehältern, Druckbehältern 

      bzw. Lagerbehältern</font></strong></font><strong> ein.</strong> </p>

  </blockquote>

  <div align="center"> 

    <blockquote> 

      <table width="500" border="1" bordercolordark="#3834FF">

        <tr bgcolor="389CFF"> 

          <td> 

            <div align="center"><strong><font color="#000000">Angaben zu </font></strong><font color="#000000"><strong>Filterbehältern, 

              Druckbehältern bzw. Lagerbehältern</strong></font></div>

          </td>

        </tr>

        <tr align="center" valign="middle" bgcolor="#489CC8"> 

          <td> 

            <table border="0">

              <tr> 

                <td width="200"><i>Behältertyp:</i></td>

                <td width="249"> 

                  <select name="Behaeltertyp" size="1">

                    <option selected>> Bitte Auswählen</option>

                    <option>Filterbehälter</option>

                    <option>Druckbehälter</option>

                    <option>Lagerbehälter</option>

                    <option>Sonstige</option>

                  </select>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Durchmesser: </i></td>

                <td width="249"> 

                  <input type="text" size="20" name="Behaelter Durchmesser in mm">

                  mm</td>

              </tr>

              <tr> 

                <td width="200"><i>Zylinderhöhe:</i></td>

                <td width="249"> 

                  <input type="text" size="20" name="Behaelter Zylinderhoehe in mm">

                  mm</td>

              </tr>

              <tr> 

                <td width="200"><i>Gesammte Höhe:</i></td>

                <td width="249"> 

                  <input type="text" size="20" name="Behaelter gesammte Hoehe in mm">

                  mm </td>

              </tr>

              <tr> 

                <td width="200"><i>Druck:</i></td>

                <td width="249"> 

                  <input type="text" size="20" name="Behaelter Druck in bar">

                  bar</td>

              </tr>

              <tr> 

                <td width="200"><i>Temperatur:</i></td>

                <td width="249"> 

                  <input type="text" size="20" name="Behaelter  Temperatur in C">

                  in C°</td>

              </tr>

              <tr> 

                <td width="200"><i>Filterplatte/ Bohrung:</i></td>

                <td width="249"> 

                  <input type="text" size="20"

    name="Behaelter  Filterplatte/ Bohrung">

                  mm </td>

              </tr>

              <tr> 

                <td width="200"><i>Medium:</i></td>

                <td width="249"> 

                  <input type="text" size="20" name="Behaelter  Medium">

                </td>

              </tr>

              <tr> 

                <td width="200" height="34"> 

                  <p><i>Wunsch Material</i><i>(Behälter):</i></p>

                </td>

                <td width="249" height="34"> 

                  <select name="Behaelter  Wunsch Material" size="1">

                    <option selected>> Bitte Auswählen</option>

                    <option>Schwarzstahl</option>

                    <option>Edelstahl</option>

                    <option>Kunststoff</option>

                  </select>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Wunsch Material (Auskleidung):</i></td>

                <td width="249"> 

                  <select name="Auskleidung Behaelter Wunschmaterial" size="1">

                    <option selected>> Bitte Auswählen</option>

                    <option>Gummiauskleidung</option>

Dr._Mohr

Senior Member

Re: Anfrage Formular "Umbauen"

Donnerstag, 13. Januar 2005, 23:21

Teil 5

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<option>Kunststoffauskleidung</option>

                    <option>Beschichtung</option>

                  </select>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Außenbeschichtung:</i></td>

                <td width="249"> 

                  <select name="Behaelter  Aussenbeschichtung" size="1">

                    <option selected>> Bitte Auswählen</option>

                    <option>Grundierung</option>

                    <option>Deckanstrich</option>

                  </select>

                </td>

              </tr>

              <tr> 

                <td width="200"><i>Reparaturwunsch vor Ort:</i></td>

                <td width="249"> 

                  <input type="checkbox" name="Behaelter  Reparaturwunsch vor Ort" value="ja">

                  (bitte ankreutzen falls gewünscht)</td>

              </tr>

              <tr> 

                <td width="200"><i></i></td>

                <td width="249">²</td>

              </tr>

              <tr> 

                <td width="200" valign="top"><i>Sonstige Bemerkungen:</i></td>

                <td width="249"> 

                  <textarea name="Behaelter  Bemerkungen" rows="5" cols="40"></textarea>

                </td>

              </tr>

            </table>

          </td>

        </tr>

      </table>

    </blockquote>

  </div>

  <blockquote> 

    <p align="center">²</p>

    <h4 align="left">4.) Spezielle Anfragen</h4>

  </blockquote>

  <div align="center"> 

    <blockquote> 

      <table width="500" border="1" bordercolordark="#3834FF">

        <tr bgcolor="389CFF"> 

          <td> 

            <div align="center"><b>Spezielle Anfragen</b></div>

          </td>

        </tr>

        <tr align="center" valign="middle" bgcolor="#489CC8"> 

          <td> 

            <textarea name="Spezieller Anfragetext" rows="5" cols="50"

        wrap="VIRTUAL"></textarea>

          </td>

        </tr>

      </table>

    </blockquote>

  </div>

  <blockquote> 

    <h4 align="center">²</h4>

    <p><b>5.) Formular versenden</b></p>

  </blockquote>

  <div align="center"> 

    <blockquote> 

      <blockquote> 

        <blockquote> 

          <blockquote> 

            <blockquote>² </blockquote>

          </blockquote>

        </blockquote>

      </blockquote>

    </blockquote>

  </div>

  <blockquote> 

    <blockquote> 

      <blockquote> 

        <blockquote> 

          <blockquote> 
            <p align="center"> 
              <input type="submit" value="Absenden">
              <input

        type="reset" value="Verwerfen">
            </p>

          </blockquote>

        </blockquote>

      </blockquote>

    </blockquote>

  </blockquote>

</form>

<p>²</p>

<p>²</p>

<p>²</p>

</body>

</html>

Ich hoffe Ihr könnt mir helfen THX Schonmal

Y0Gi

God

Re: Anfrage Formular "Umbauen"

Freitag, 14. Januar 2005, 15:23

in php:

Quellcode

1
2
3
if ('POST' == $_SERVER['REQUEST_METHOD']) {
    mail(...);
}

die parameter zur mail-funktion findest du auf http://de3.php.net/manual/en/function.mail.php
als text der mail fügst du einfach die werte des formulars an:

Quellcode

1
2
3
4
5
$body = "Diese Mail enthält die Daten aus dem Formular:\n";
$fields = array('Vorname', 'Firma'); // hier alle feldnamen eintragen
foreach ($fields as $field) {
    $body .= $field . ': ' . $_POST[$field] . "\n";
}

alles klar soweit?

Y0Gi

God

Re: Anfrage Formular "Umbauen"

Montag, 17. Januar 2005, 19:35

so, hab mal eben was fertiges gebastelt, damit andere auch was davon haben: http://homework.nwsnet.de/releases/2aa9/#basic-form-mailer

der code sieht so aus:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
 * formmailer.php -- Version 17-Jan-2005
 *
 * A very basic script that collects input from a html form, sends its
 * contents via email to a given address and redirects the user to a
 * confirmation/thank you/success page.
 *
 * Copyright (c) 2005 Jochen Kupperschmidt <webmaster@homework.nwsnet.de>
 * Released under the terms of the GNU General Public License
 *   _                               _
 *  | |_ ___ _____ ___ _ _ _ ___ ___| |_
 *  |   | . |     | ._| | | | . |  _| . /
 *  |_|_|___|_|_|_|___|_____|___|_| |_|_\
 *    http://homework.nwsnet.de/
 */

// make sure this script was called via POST method, not GET
if ('POST' != $_SERVER['REQUEST_METHOD']) {
    exit('Not a POST request.');
}

// make your changes here
$sender    = 'formmailer@example.com';
$recipient = 'you@example.com';
$subject   = 'Submitted form contents from your website';
$body      = "Input from submitted form:\n\n";
$redirect  = 'formsent.html';

// loop through form input
foreach ($_POST as $key => $value) {
    $body .= $key . ' = ' . $value . "\n";
}

// additional (client) information
$body .= "\n\nAdditional (client) information:\n\n"
    . 'Date = ' . date('Y-m-d H:i') . "\n"
    . 'Browser = ' . HTTP_USER_AGENT . "\n"
    . 'IP Address = ' . $_SERVER['REMOTE_ADDR'] . "\n"
    . 'Hostname = ' . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "\n";

// send email
mail($recipient, $subject, $body, 'From: ' . $sender);

// redirect to confirmation page
header('Location: ' . $redirect);
?>


viel spaß.

edit: man sieht hier übrigens, dass die absender-adresse beliebig veränderbar ist. der servername steht zwar im header, aber die absenderadresse wird gut sichtbar angezeigt und der header bleibt meist verborgen. so lassen sich absender auf den ersten blick fälschen.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Y0Gi« (22. Januar 2013, 03:50)