Error in PHP file uploader -


now, getting problem.... trying upload file code :-

<form action="up.php" method="post">                     <input type="hidden" name="max_file_size" value="200000" />                     choose file upload: <input name="uploadedfile" type="file" /><br />                     <input type="submit" name="submit" value="upload!"/> </form> 

here up.php:-

if(!isset($_files["uploadedfile"])) die("hacking attempt"); 

in above code, says hacking attempt... why isnt having file??

for start mysql_ functions deprecated - use mysqli_ or pdo try following identify error:

$q = mysql_query($query,$c); if (!$q) die(mysql_error());` 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -