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] Formular Frage (https://www.gegen-bilderklau.net/thread.php?threadid=155744)
Geschrieben von Jesssi am 17.05.2009 um 19:22:
Formular Frage
Ich hätte eine Frage zu diesem PHP Teil des Formulars:
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:
|
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$geburtsdatum = $_POST['geburtsdatum'];
$msnicq = $_POST['msnicq'];
$homepage = $_POST['homepage'];
$überrcw = $_POST['überrcw'];
$überdich = $_POST['überdich'];
$geburtsdatumvirtuell = $_POST['geburtsdatumvirtuell'];
$überdichvirtuell = $_POST['überdichvirtuell'];
$text = "Hallo Jessi, du hast ein neues Vollmitglied!
Name: $name
E-mail: $email
Geburtsdatum: $geburtsdatum
MSN/ICQ: $msnicq
Homepage: $homepage
Über RCW: $über rcw
Über dich: $über dich
Geburtsdatum virtuell: $geburtsdatum virtuell
Über dich virtuell: $über dich virtuell"
if_(($name == "") OR ($email == "") OR ($geburtsdatumvirtuell == "") OR ($überdichvirtuell == "") OR ($geburtsdatum == ""))
{ echo "Bitte fülle alle Felder aus";
include('formular 2.html'); }
else {
mail("waldenau@gmx.at",Vollanmeldung,$text,"From: $email");
echo "Die Anmeldung wurde abgeschickt.";}
?> |
|
sobald ich ein Formular abschicken will kommt:
Parse error: syntax error, unexpected T_STRING in /usr/export/www/hosting/waldenau/formular_send2.php on line 35
kann mir bitte jemand helfen
Geschrieben von Carina am 17.05.2009 um 19:38:
müsste gehen wenn du in line 35 den unterstrich weg nimmst also
if ((
Geschrieben von Jesssi am 17.05.2009 um 19:43:
schon probiert dann kommt das:
Parse error: syntax error, unexpected T_IF in /usr/export/www/hosting/waldenau/formular_send2.php on line 35
Geschrieben von Jesssi am 17.05.2009 um 19:58:
danke aber leider trotzdem noch nicht richtig
Geschrieben von Jesssi am 17.05.2009 um 20:04:
zuerst die:
Parse error: syntax error, unexpected T_IF in /usr/export/www/hosting/waldenau/formular_send2.php on line 35
und wenn ich dann wieder nach dem if ein _ mach kommt wieder die erste
Geschrieben von Carina am 17.05.2009 um 20:06:
nach dem if soll auch kein _
Geschrieben von Jesssi am 17.05.2009 um 20:09:
wenn ich nach dem if kein _ mach dann kommt das:
Parse error: syntax error, unexpected T_IF in /usr/export/www/hosting/waldenau/formular_send2.php on line 35
Geschrieben von Carina am 17.05.2009 um 20:13:
hm hast du nach dem if auch ein leerzeichen?
Geschrieben von Jesssi am 17.05.2009 um 20:16:
ja
Geschrieben von Nanni am 17.05.2009 um 20:58:
Probier den von Mutzelchen mit einem Abstand nach dem if.
Der von ihr sollt eig. richtig sein ^^
LG
Geschrieben von Jesssi am 17.05.2009 um 21:13:
wenn ich den von mutzelchen nehme und nach dem if ein leerzeichen mach kommt immer egal ob ich alle felder ausfülle oder nicht: Bitte fülle alle Felder aus
Geschrieben von Jesssi am 17.05.2009 um 21:52:
*hoff dass da kein fehler ist^^*
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:
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>formular 2</title>
</head>
<body>
<form action="formular_send2.php" method="post">
<table>
<tbody>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg"><small>Name</small></td>
<td>
<input name="name" type="text"></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>E-Mail</small></td>
<td>
<input name="email" type="text"></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>Geburtsdatum</small></td>
<td><input name="geburtsdatum" type="text"></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>MSN/ICQ</small></td>
<td><input name="msn/icq" type="text"></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>Homepage</small></td>
<td><input name="homepage" type="text"></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>Über
RCW</small></td>
<td><textarea name="über rcw"></textarea></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>Über
dich</small></td>
<td><textarea name="über dich"></textarea></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>Geburtsdatum
virtuell</small></td>
<td><input name="geburtsdatum virtuell" type="text"></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<small>Über
dich virtuell</small></td>
<td><textarea name="über dich virtuell"></textarea></td>
</tr>
<tr>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<input value="Abschicken" type="submit"></td>
<td style="text-align: center; font-family: Verdana;" background="http://i37.tinypic.com/2v9wtpk.jpg">
<input value="Löschen" type="reset"></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
|
|
Geschrieben von Jesssi am 17.05.2009 um 21:55:
ok....
Geschrieben von Nanni am 17.05.2009 um 21:57:
und die Abstände im Namen, zb über rcw und dann in der php-Datei überrcw, das kann nicht gehen (;
Geschrieben von Jesssi am 17.05.2009 um 22:08:
das hab ich eh schon gemekrt und auch ausgebessert
Geschrieben von Carina am 18.05.2009 um 16:10:
wenn du alles ausgebessert hast und es immer noch nicht geht solltest du vllt mal die neuen codes reinstellen
Forensoftware: Burning Board, entwickelt von WoltLab GmbH