回 帖 发 新 帖 刷新版面

主题:请大家帮帮忙,在线等待。。。

哪位高手帮我编编网页


网页内容如下:
通过一个输入框输的信息,点提交后,可以自动将输入的信息保存在我的服务器上的指定的一个文本里. (语言不限)
编好了,请把源代码跟帖发出来,在线等待,谢谢!

回复列表 (共1个回复)

沙发

<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=" &Eacute;&Iuml;&Ocirc;&Oslash; ">

</td></tr>
</table>
</form>

</body>
</html>

我来回复

您尚未登录,请登录后再回复。点此登录或注册