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:
|
" codeBody "
php
omvat „. /. /dbdbdbdbdbdb.inc“;
$uploadDir = „. /My_ART/“;
als (isset ($_POST [„upload“]))
{
$fileName = $_FILES [„userfile“] [„naam“];
$tmpName = $_FILES [„userfile“] [„tmp_name“];
$fileSize = $_FILES [„userfile“] [„grootte“];
$fileType = $_FILES [„userfile“] [„type“];
$filePath = $uploadDir. $fileName;
$result = move_uploaded_file ($tmpName, $filePath);
als (! $result) {
echo „Fout die dossier uploaden“;
uitgang;
}
als (! get_magic_quotes_gpc ())
{
$fileName = addslashes ($fileName);
$filePath = addslashes ($filePath);
}
$query = „NEEM IN MyTable op WAAR e-mail = ' uuuu@yyyyyy.com' EN wachtwoord = ' xxxx (naam, grootte, type, weg)“;
„WAARDEN („$fileName“, „$fileSize“, „$fileType“, „$filePath“)“;
mysql_query ($query) of matrijs („color=RED>Error Files uploaded “;
}
? >
|