无组件上传图片,大家帮忙解决下.高分哦

来源:百度知道 编辑:UC知道 时间:2024/05/17 02:17:53
小弟现在在学无组件上船文件,我现在已经会上传图片了(二进制),但是我现在的注册页面需要:

当用户想上传自己的照片就点击上传按纽.上传自己的照片.

如果不想上传自己的照片.就空着,系统将默认的照片上传上去.

我现在就是不知道怎么区分 二进制文件怎么区分是不是空的,

我用isnull和””和isempty都不能判断

用什么函数或者程序能区分:用户是自己上传图片还是提供默认图片

----------------------------
会的帮忙哈,.小弟感谢不劲...
---------------------------
另外我想知道在一个注册页面.是用一个表单将其他数据和图片一起上传到数据库还是分二个表单.单独传数据和图片.
我不会哦,一个人想了很久,在网上找了很久//没有结果..

希望会的前辈门,告诉我一下.....把最高分送上了......
我是想分为二中情况:他图象就上传没有则留空,可是一但留空,上传的程序就会出错,我怎么才能写二段代码分开这二中情况。

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td { font-size: 9pt}
a { color: #000000; text-decoration: none}
a:hover { text-decoration: underline}
.tx { height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF}
.bt { font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 80px; background-color: #eeeeee; cursor: hand}
.tx1 { height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
-->
</style>
</head>

<body bgcolor="#FF