Browsing a file


hello there,

 

i want use the file type field browse pdf or word document in registration form.i dont know how use it. please me.

 

i have followed following example.but dont know how upload pdf or word document.

 

http://www.w3schools.com/php/php_file_upload.asp

the tutorial referenced shows section upload restrictions. need add/modify lines handle ms word , pdf files adding mime types. ms word, believe "application/msword". pdf it's "application/pdf". you'll need modify allowed extensions. try

 

$allowedexts = array("doc", "docx", "pdf");

$temp = explode(".", $_files["file"]["name"]);

$extension = end($temp);

if ((($_files["file"]["type"] == "application/msword")

|| ($_files["file"]["type"] == "application/pdf")

 

 

.......



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?