- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
<td rowspan="1" colspan="3">e-mail</td>
<td><textarea name="e-mail" rows=1 cols=10></textarea></td>
<td>TEXTAREA</td>
</tr>
<tr>
<td rowspan="1" colspan="3">Отзывы</td>
<td><textarea name="otziv" rows=10 cols=20></textarea></td>
<td>TEXTAREA</td>
</tr>
<tr>
<td colspan="4" rowspan="1">
<input type="checkbox" name="news" checked="yes">Желаете ли вы получать новости на свой e-mail факультета?
</td>
<td>INPUT<br>CHECKBOX</td>
</tr>
<tr>
<td colspan="4" rowspan="1">
<center>
<input type="reset" value="Отмена" name="Cancel">
<input type="submit" value="Отправить" name="Send" onClick="SendMsg();">
</center>
</td>
<td>INPUT<br>RESET<br>SUBMIT</td>
</tr>
<tr>
<td
colspan="2" rowspan="3">Вход для зарегистрированных пользователей:</td>
<td>Имя</td>
<td><input type="text" name="name" value=""></td>
<td>TEXT</td>
</tr>
<tr>
<td>Пароль</td>
<td><input type="password" name="password" value=""></td>
<input type="hidden" name="recipient" value="[email protected]">
<input type="hidden" name="subject" value="Message From My Form otzivi.html">
<input type="hidden" name="required" value="name,password">
<input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">
<input type="hidden" name="title" value="Результаты заполнения формы">
<input type="hidden" name="return_link_title" value="Назад на мою домашнюю страничку">
<input type="hidden" name="bgcolor" value="white">
<input type="hidden" name="text_color" value="black">
<td>INPUT<br>PASSWORD</td>
</tr>
</tbody>
</table>
<p align="center"><input type="submit" value="Отправить" name="Send"></p>
</form>
<form enctype="multipart/form-data" action="" method=POST> Choose file upload: <input name="userfile" type="file"><br>
Name <input type="text" name="name"><br>
<p style="background-attachment : inherit; background-image : url('../Pictures/Alice-Cullen-twilight-movie-2185809-800-600.jpg'); background-position : center; font-family : ; table-layout : inherit;">
<input type="submit" value="Upload file">
</form>
<?php
echo $_SERVER['DOCUMENT_ROOT'];
$FILEREPOSITORY=$_SERVER['DOCUMENT_ROOT']."/";
if (isset($_FILES['userfile'])) {
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
if ($_FILES['userfile']['type'] != "image/jpeg" & $_FILES['userfile']['type'] != "image/pjpeg" & $_FILES['userfile']['type'] & "image/gif" ) {
echo "<p>Homework must be uploaded in jpeg format.</p>";
} else {
include_once("connect.php");
connect_db("downloads");
echo "connect<br>";
$today = @date("m-d-Y");
echo $today;
if (! is_dir($today)) {
mkdir($today);
}
$name = $_POST['name'];
$result = move_uploaded_file($_FILES['userfile']['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/".$today."/"."$name");
if ($result == 1){
echo "<p>File successfully uploaded.</p>";
$fn=$_SERVER['DOCUMENT_ROOT']."/".$today."/".$name;
$query="INSERT INTO downloads(path) VALUES('$fn')";
mysql_query($query);
echo $fn;
}
else
echo "<p>There was a problem uploading the homework.</p>";
}
}
}
?>
Nerd 23.01.2011 21:41 # 0
>на свой e-mail факультета?
сильно...
Uchkuma 24.01.2011 00:56 # +1
Можно же стили в hidden полях передавать! Как я раньше не догадался!!?
Lure Of Chaos 24.01.2011 13:56 # 0
и картинку спер с lastfm
bugmenot 24.01.2011 16:16 # 0
!!!!!!
Vasiliy 26.01.2011 20:46 # +1