<form name="form1" method="post" action="">
<input type="file" name="file">
<br>
<input type="submit" name="Submit" value="Submit">
</form>
simple form as follows! Basically i would like validation to the input type file! Basically if the user doent browse a file then dont pass the information to a database!
Ive tried
if(isset($POST['Submit']))
{
echo $POST['file'];
}
no data is echoed even when a file is specifed! ANy ideas why the post var is empty yet the field within html contains the target file address ?
thanks ! si