主题:请大家帮帮忙,在线等待。。。
wq87410020 [专家分:0] 发布于 2005-06-29 16:37:00
哪位高手帮我编编网页
网页内容如下:
通过一个输入框输的信息,点提交后,可以自动将输入的信息保存在我的服务器上的指定的一个文本里. (语言不限)
编好了,请把源代码跟帖发出来,在线等待,谢谢!
回复列表 (共1个回复)
沙发
东东1204 [专家分:270] 发布于 2005-06-30 02:45:00
<html>
<head>
<title>PHP Upload</title>
<meta http-equiv="Content-Type" content="text/html; charset=??????">
</head>
<body>
<?
if ($upload){
$real_path = $userfile_name;
if (file_exists($real_path)){
unlink($real_path);
}
if (!@copy($userfile,$real_path))
$upload_flag = false;
else
$upload_flag = true;
}
?>
<form name="frmUpload" action="upload.php" enctype="multipart/form-data" method="post">
<table border=0 cellspacing=0 cellpadding=4>
<tr><td>
<input type="hidden" name="MAX_FILE_SIZE" value="1048576">
<td>
<input type="file" name="userfile" size="40">
<input type="submit" name="upload" value=" ÉÏÔØ ">
</td></tr>
</table>
</form>
</body>
</html>
我来回复