input file not work :
form.php
<form action='process.php' method="post" enctype="multipart/form-data" >
<input type='text' name='name' />
<input type='file' name='photo' />
<input type='submit' name='submit' />
</form>
process.php
if($_POST){
foreach($_POST as $key = > $value ){
if($key!='submit')
echo $key.'='.$value.'<br/>';
}
}
output:
name=name
?! who can solve this problem for input files. please helpppppp....