all of other form data visible, name of file not showing in browser.
here little portion of code:
<form method="post" action=<?php echo $_server["php_self"];?> entype="multipart/form-data"> <input type="file" name="file"> <input type="submit" name="file" value="yoyo"> </form> <?php echo $name = $_files["file"]["name"]; echo "problem"; ?> and output:
notice: undefined index: file in d:\xamp\htdocs\colgweb\index.php on line 228 problem
use a validator: misspelled enctype (it has c in it).
consequently, form being submitted default (url based) encoding doesn't support file uploads.
Comments
Post a Comment