how to upload a file to my server using html -


basically have form allows user upload server:

<form id = "uploadbanner" method = "post" action = "#">       <input id = "fileupload" type = "file" />       <input type = "submit" value = "submit" id = "submit" /> </form> 

but problem when upload file, click submit, don't see file upload in server directory.

<form id="uploadbanner" enctype="multipart/form-data" method="post" action="#">    <input id="fileupload" name="myfile" type="file" />    <input type="submit" value="submit" id="submit" /> </form> 

you need form type , php process file :)

you should check out uploadify if want customisable out of box.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -