Upload file checker
check if form field contains somthing.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>javascript image upload checker</title>
</head>

<body>
<script language="javascript">
<!--
function checkchars(cur) {
	var maxlength=1
	if (cur.file1.value.length<maxlength) {
		alert("You must select a file to upload!");
	return false;
	}
	return true;
}
//-->
</script>

<form onsubmit="return checkchars(this)">
	<input type="file" name="file1"><br>
	<input type="submit" value="Submit!">
</form>



</body>
</html>
 

cover
Buy Fusebox 5 & FLiP: Master-Class ColdFusion Applications
cover
Buy Fusebox 4 & FLiP: Master-Class ColdFusion Applications
cover
Buy ColdFusion Lists, Arrays, & Structures
cover
Buy ColdFusion XML Objects

Dedicated and Shared CF Hosting