Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] probleme mit anmeldeformular... (https://www.gegen-bilderklau.net/thread.php?threadid=125750)


Geschrieben von Janin am 03.01.2008 um 19:09:

  probleme mit anmeldeformular...

Hallo... ich habe mich vor einigen wochen an einem anmeldeformular gemaxht und es ging nicht, aber keiner konnte mir helfen, als ich es in den thread schrieb...
wenn ich das formular abschicke, erscheint folgende meldeung...: Parse error: syntax error, unexpected '=' in /usr/export/www/vhosts/funnetwork/hosting/derlohof/action_formular.php on line 8

also ich zeig euich mal die codes...

Das ist der Code von dem Formular.html

code:
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:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <style>
body { scrollbar-face-color: #F1f2f4;
scrollbar-highlight-color: #f1f2f4; scrollbar-3dlight-color: #c9c9cb; scrollbar-darkshadow-color: #f1f2f4; scrollbar-shadow-color: #f1f2f4; scrollbar-arrow-color: #c9c9cb;
scrollbar-track-color: #f1f2f4;
  </style>
  <style type="text/css">
A:link{COLOR: #737375; TEXT-DECORATION: underline; }
A:visited{COLOR: #737375; TEXT-DECORATION: underline; }
A:active{COLOR: #737375; TEXT-DECORATION: underline; }
A:hover{COLOR: #737375; TEXT-DECORATION: underline;position: relative; top: 1; left: 2; }
  </style>
  <style type="text/css" ;="" background-image=""
 url('http://derlohof.de.funpic.de/tabellenhg.jpg=""
 font-family="" verdana="" font-size="" 10pt=""
 text-align:left="" text-decoration="" none=""
 border-color="" #737375="" border-style=""
 solid="" border-width="" 1px="">
  </style>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title></title>
  <p></p>
</head>
<body
 style="background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg);">
<form action="action_formular.php" method="post">
  <table
 style="border: 1px solid rgb(0, 0, 0); font-weight: bold; margin-left: auto; margin-right: auto; font-family: Verdana; text-align: center;"
 align="center" bgcolor="#fafafa" border="1"
 bordercolor="#000000" width="350">
    <div style="text-align: center;"></div>
    <tbody>
      <tr style="font-family: Verdana;">
        <td colspan="4"
 background="http://derlohof.de.funpic.de/Design/tabellenhg.jpg"><small>Wichtiges</small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Username*:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Username*:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Passwort*:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Passwort*:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>e-mail*:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="e-mail*:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr style="font-family: Verdana;">
        <td colspan="4"
 background="http://derlohof.de.funpic.de/Design/tabellenhg.jpg"><small>Reales</small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Realer
Name*:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Realer Name*:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Alter*:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Alter*:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Geburtstag*:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Geburtstag*:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Herkunft/Wohnort:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Herkunft/wohnort:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Sternzeichen:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Sternzeichen:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Haarfarbe:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Haarfarbe:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Augenfarbe:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Augenfarbe:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>K&ouml;rpergr&ouml;&szlig;e:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="K&ouml;rpergr&ouml;&szlig;e:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Lieblingsessen:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Lieblingsessen:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Lieblingsmusik:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Lieblingsmusik:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Hobbies:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Hobbies:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Ich
hasse:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="Ich hasse:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Selbstbeschreibung:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="&Uuml;ber sich selbst:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text">
        </small></td>
      </tr>
      <tr style="font-family: Verdana;">
        <td colspan="4"
 background="http://derlohof.de.funpic.de/Design/tabellenhg.jpg"><small>Zum
Schluss</small>
        </td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small>Was
du mir/mich noch sagen/fragen willst:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><small><input
 size="23" name="Ich m&ouml;chte dich noch sagen/fragen:"
 style="border-style: solid; border-width: 1px; background-image: url(http://derlohof.de.funpic.de/Design/forenhgwinter.jpg); font-family: Verdana; font-size: 12px;"
 type="text"></small>
        </small></td>
      </tr>
      <tr>
        <td style="font-family: Verdana;"><small><input
 value="Absenden" type="submit"></small>
        </td>
        <td style="font-family: Verdana;"><small><input
 value="Zur&uuml;cksetzen" type="reset"></small></td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>
 


Und das der code von action_formular.php

php:
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
  $name $_POST['name'];
  $passwort $_POST['passwort'];
  $email $_POST['email'];
  $realername $_POST['realername'];
  $alter $_POST['alter'];
  $geburtstag $_POST['geburtstag'];
  $herkunft/wohnort $_POST['herkunft/wohnort'];
  $sternzeichen $_POST['sternzeichen'];  
  $haarfarbe $_POST['haarfarbe'];
  $augenfarbe $_POST['augenfarbe'];
  $koerpergroesse $_POST['koerpergroesse'];
  $lieblingsessen $_POST['lieblingsessen'];
  $lieblingsmusik $_POST['lieblingsmusik'];
  $hobbies $_POST['hobbies'];
  $ichhasse $_POST['ichhasse'];
  $selbstbeschreibung $_POST['selbstbeschreibung'];
  $fragen/kommentar $_POST['fragen/kommentar'];
  if ( ($name == "") OR ($email == "") OR ($passwort == "") )
  {
    echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='javascript:back()'>zurück</a> und korrigiere dies!";
  }
  else
  {
    $text "
    Name: $name
Passwort: $passwort
E-Mail: $email
Realer Name: $realername
Alter: $alter
Geburtstag: $geburtstag
Herkunft/Wohnort: $herkunft/wohnort
Sternzeichen: $sternzeichen
Haarfarbe: $haarfarbe
Augenfarbe: $augenfarbe
Koerpergroesse: $koerpergroesse
Lieblingsessen: $lieblingsessen
Lieblingsmusik: $lieblingsmusik
Hobbies: $hobbies
Ich hasse: $ichhasse
Selbstbeschreibung: $selbstbeschreibung
Fragen/Kommentar: $fragen/kommentar";
    mail("Der-Lohof@gmx.de",$betreff,$text,"From $name <$email>");
    echo "Deine e-Mail wurde erfolgreich abgeschickt.";
  }
?>


ich hoffe, jemand kann mir helfen... ich find den fehler nämlich nich...
danke jetzt schonmal^^
lg Janin



Geschrieben von .farblos. am 04.01.2008 um 00:27:

 

hmmm... ich kenn mich jetzt nicht so gut mit php aus, allerdings sagt die Fehlermeldung ja schon einiges und zwar das der Fehler in der php datei in der 8 zeile ist...


Forensoftware: Burning Board, entwickelt von WoltLab GmbH