uploaden, linken ging goed maar....
Het uploaden en linken ging goed toen het script intact was (meerdere bestanden).
Ben nu 2 dagen bezig met het script maar kom er niet uit. Geeft wel een nieuw record weer uiin de database, maar geen bestandsnaam en geen bestanden geupload!
geen idee waar het probleem zit.Tja in het formulier:-)
Kan iemand mij helpen?
Code (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
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
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
<?PHP
<form action="invoerenevent.php" method="POST" enctype="multipart/form-data">
<table width="38%">
<tr>
<td width="53%" height="10">
<div align="left"><img src="images/Datumevent.jpg"
align="absbottom"><font face="Verdana"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></div>
</td>
<td width="47%" height="10"><font face="Verdana">
<input type="text" name="datum" size="10" maxlength="10">
<img src="images/YYYY.jpg" width="126" height="19"></font></td>
</tr>
<tr>
<td width="53%" height="17">
<div align="left"><img src="images/Naamevent.jpg"
align="absbottom"><font face="Verdana"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></div>
</td>
<td width="47%" height="17">
<p><font face="Verdana">
<input type="text" name="event_naam" size="28">
</font></p>
</td>
</tr>
<tr>
<td width="53%" height="3">
<div align="left"><font face="Verdana"><img src="images/Info1.jpg"
align="absbottom"></font></div>
</td>
<td width="47%" height="41" rowspan="2"><font face="Verdana">
<textarea name="info" cols="40" wrap="VIRTUAL"></textarea>
</font></td>
</tr>
<tr>
<td> </td>
[code]<?php
if ($_POST['verstuur']==1)
{
$orgnaam="image1";
include "upload/upload.php";
}
else {
ECHO "OOIEVAAR2";
?>
</tr>
<tr>
<td width="53%" height="7"><img src="images/Advertentie.jpg"></td>
<td width="47%" height="7">
<input type="file" name="verstuur" size="36">
</td>
<?PHP
}
?>
</tr>
<tr>
<td width="53%" height="7"><font face="Verdana"> <img
src="images/Organisator.jpg" align="absbottom"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></td>
<td width="47%" height="7"><font face="Verdana">
<input type="text" name="georganiseerd" size="28">
</font></td>
</tr>
<tr>
<td width="53%" height="8"><img src="images/Telefoon.jpg" width="94"
height="20"><font face="Verdana"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></td>
<td width="47%" height="8"><font face="Verdana">
<input type="text" name="telefoon" size="15" maxlength="15">
</font></td>
</tr>
<tr>
<td width="53%" height="8"><img src="images/Mobiele-telefoon.jpg"
width="169" height="20"><font face="Verdana"></font></td>
<td width="47%" height="8"><font face="Verdana">
<input type="text" name="mobiel" size="15" maxlength="15">
</font></td>
</tr>
<tr>
<td width="53%" height="17"><font face="Verdana"><img
src="images/Email-adres.jpg" align="absbottom"><font face="Verdana"><font
color="#FFFF00"><img src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font><font color="#FFFF00"></font></font></td>
<td width="47%" height="17"><font face="Verdana">
<input type="text" name="email" maxlength="35" size="35">
</font></td>
</tr>
</table>
<br>
<font face="Verdana"><img src="images/Alle-velden.jpg" width="366"
height="19"></font><br><br>
<input type="hidden" name="submit" value="hiddenValue" border="0">
<input type="hidden" name="verstuur" value="1">
<input type=submit name=submit value="REGISTER">
<br>
</form>
</font>
</center>
<div align="center"><a href="Events.php" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image19','','Buttons/Back-rollover.jpg',1)"><img
name="Image19" border="0" src="Buttons/Back.jpg"></a></div>
</html>
<?PHP
if($_POST['submit']){
$datum = $_POST['datum'];
$event_naam = $_POST['event_naam'];
$info = $_POST['info'];
$image1 = $_POST['image1'];
$georganiseerd = $_POST['georganiseerd'];
$email = $_POST['email'];
$telefoon = $_POST['telefoon'];
$mobiel = $_POST['mobiel'];
$ip = getenv("REMOTE_ADDR");
include ('config.php');
$sql = "INSERT INTO event(datum, event_naam, info, georganiseerd, IPnummer,
email, telefoon, mobiel, upload) VALUES ('$datum', '$event_naam', '$info',
'$georganiseerd', '$ip', '$email', '$telefoon', '$mobiel', '$image1')";
mysql_query($sql);
echo '<script language=javascript>';
echo 'window.location.href = "Events.php"';
echo '</script>';
}
?>
<form action="invoerenevent.php" method="POST" enctype="multipart/form-data">
<table width="38%">
<tr>
<td width="53%" height="10">
<div align="left"><img src="images/Datumevent.jpg"
align="absbottom"><font face="Verdana"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></div>
</td>
<td width="47%" height="10"><font face="Verdana">
<input type="text" name="datum" size="10" maxlength="10">
<img src="images/YYYY.jpg" width="126" height="19"></font></td>
</tr>
<tr>
<td width="53%" height="17">
<div align="left"><img src="images/Naamevent.jpg"
align="absbottom"><font face="Verdana"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></div>
</td>
<td width="47%" height="17">
<p><font face="Verdana">
<input type="text" name="event_naam" size="28">
</font></p>
</td>
</tr>
<tr>
<td width="53%" height="3">
<div align="left"><font face="Verdana"><img src="images/Info1.jpg"
align="absbottom"></font></div>
</td>
<td width="47%" height="41" rowspan="2"><font face="Verdana">
<textarea name="info" cols="40" wrap="VIRTUAL"></textarea>
</font></td>
</tr>
<tr>
<td> </td>
[code]<?php
if ($_POST['verstuur']==1)
{
$orgnaam="image1";
include "upload/upload.php";
}
else {
ECHO "OOIEVAAR2";
?>
</tr>
<tr>
<td width="53%" height="7"><img src="images/Advertentie.jpg"></td>
<td width="47%" height="7">
<input type="file" name="verstuur" size="36">
</td>
<?PHP
}
?>
</tr>
<tr>
<td width="53%" height="7"><font face="Verdana"> <img
src="images/Organisator.jpg" align="absbottom"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></td>
<td width="47%" height="7"><font face="Verdana">
<input type="text" name="georganiseerd" size="28">
</font></td>
</tr>
<tr>
<td width="53%" height="8"><img src="images/Telefoon.jpg" width="94"
height="20"><font face="Verdana"><font color="#FFFF00"><img
src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font></td>
<td width="47%" height="8"><font face="Verdana">
<input type="text" name="telefoon" size="15" maxlength="15">
</font></td>
</tr>
<tr>
<td width="53%" height="8"><img src="images/Mobiele-telefoon.jpg"
width="169" height="20"><font face="Verdana"></font></td>
<td width="47%" height="8"><font face="Verdana">
<input type="text" name="mobiel" size="15" maxlength="15">
</font></td>
</tr>
<tr>
<td width="53%" height="17"><font face="Verdana"><img
src="images/Email-adres.jpg" align="absbottom"><font face="Verdana"><font
color="#FFFF00"><img src="images/Sterretje.jpg" width="15" height="16"
align="absbottom"></font></font><font color="#FFFF00"></font></font></td>
<td width="47%" height="17"><font face="Verdana">
<input type="text" name="email" maxlength="35" size="35">
</font></td>
</tr>
</table>
<br>
<font face="Verdana"><img src="images/Alle-velden.jpg" width="366"
height="19"></font><br><br>
<input type="hidden" name="submit" value="hiddenValue" border="0">
<input type="hidden" name="verstuur" value="1">
<input type=submit name=submit value="REGISTER">
<br>
</form>
</font>
</center>
<div align="center"><a href="Events.php" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image19','','Buttons/Back-rollover.jpg',1)"><img
name="Image19" border="0" src="Buttons/Back.jpg"></a></div>
</html>
<?PHP
if($_POST['submit']){
$datum = $_POST['datum'];
$event_naam = $_POST['event_naam'];
$info = $_POST['info'];
$image1 = $_POST['image1'];
$georganiseerd = $_POST['georganiseerd'];
$email = $_POST['email'];
$telefoon = $_POST['telefoon'];
$mobiel = $_POST['mobiel'];
$ip = getenv("REMOTE_ADDR");
include ('config.php');
$sql = "INSERT INTO event(datum, event_naam, info, georganiseerd, IPnummer,
email, telefoon, mobiel, upload) VALUES ('$datum', '$event_naam', '$info',
'$georganiseerd', '$ip', '$email', '$telefoon', '$mobiel', '$image1')";
mysql_query($sql);
echo '<script language=javascript>';
echo 'window.location.href = "Events.php"';
echo '</script>';
}
?>
Er zijn nog geen reacties op dit bericht.