-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupload_form.php
More file actions
48 lines (48 loc) · 1.16 KB
/
upload_form.php
File metadata and controls
48 lines (48 loc) · 1.16 KB
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
<?php
namespace Pmeth\RBI;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Uploading files with PHP</title>
<style type="text/css">
body {
padding: 0;
margin: 0;
background: #fff;
}
h1 {
font: bold 16pt Arial, Helvetica, sans-serif;
color: #000;
text-align: center;
}
p {
font: normal 10pt Arial, Helvetica, sans-serif;
color: #000;
}
form {
display: inline;
}
#formcontainer {
width: 50%;
padding: 10px;
margin-left: auto;
margin-right: auto;
background: #eee;
border: 1px solid #666;
}
</style>
</head>
<body>
<h1>Uploading files with PHP</h1>
<div id="formcontainer">
<form enctype="multipart/form-data" action="upload_file.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
<p>File to upload <input name="userfile" type="file" />
<input type="submit" name="send" value="Upload File" />
</p>
</form>
</div>
</body>
</html>