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] Anmeldeformular funzt nicht... es kommt immer eine fehlermeldung beim abschicken... (https://www.gegen-bilderklau.net/thread.php?threadid=129863)


Geschrieben von supaniddel am 08.03.2008 um 11:37:

  Anmeldeformular funzt nicht... es kommt immer eine fehlermeldung beim abschicken...

Hallo... ich hoffe mir kann hier jemand helfen... und zwar habe ich ein anmeldeformular gemacht, aber es geht nicht... sobald ich auf abschicken klicke, kommt folgende fehlermeldung:

Parse error: syntax error, unexpected '=' in /usr/export/www/vhosts/funnetwork/hosting/derlohof/action_formular.php on line 8

ich weiß aber nicht, was in zeile 8 falsch sein soll... also ich zeig euch jetzt mal den code von action_formular...

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 ihr könnt mir helfen...
lg supaniddel



Geschrieben von Medic Droid am 08.03.2008 um 13:44:

  RE: Anmeldeformular funzt nicht... es kommt immer eine fehlermeldung beim abschicken...

$herkunft/wohnort = $_POST['herkunft/wohnort'];

könnte vielleicht hierdran liegen, entweder wegen des "/" oder du hast es falsch benannt



Geschrieben von supaniddel am 08.03.2008 um 15:04:

 

okay, jetzt is die fehlermeldung weg, aber dafür steht dann da immer, dass nicht alle felder ausgefüllt sind... obwohl sie es sind...



Geschrieben von supaniddel am 08.03.2008 um 15:38:

 

hab ich... also jetzt verschickt er zwar etwas, aber da steht dann z.B nur Name:
und dahinter steht nix... also die e-mail sieht dann so aus:

>From <>


Name:
Passwort:
E-Mail:
Realer Name:
Alter:
Geburtstag:
Wohnort:
Sternzeichen:
Haarfarbe:
Augenfarbe:
Koerpergroesse:
Lieblingsessen:
Lieblingsmusik:
Hobbies:
Ich hasse:
Selbstbeschreibung:
Fragen:

woran kann das liegen?



Geschrieben von supaniddel am 08.03.2008 um 15:54:

 

okay:

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:
<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>Wohnort:
        </small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><input
 size="23" name="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 mich noch fragen willst:</small></td>
        <td style="font-weight: normal; font-family: Verdana;"><small><small><input
 size="23" name="Ich m&ouml;chte dich noch 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>
 



Geschrieben von supaniddel am 08.03.2008 um 16:05:

 

omg... Augen rollen wie dämlich xDD
danke


Forensoftware: Burning Board, entwickelt von WoltLab GmbH