0

Php and html img form

how to echo uploaded picture on screen with php I.e how to get image from html form

28th Dec 2017, 5:27 PM
Ch Webs
1 Resposta
+ 3
Use <input type="file" name="image"> Then, use $_FILES -a superglobal variable defined in php. like this - echo $_FILES["image"]["name"]; here image is the name attribute specified of your input type file :-) Note- use attribute enctype="multipart/form-data" in your HTML <form> tag. Also make sure, in your php.ini file have file upload option is enabled, if not then edit line as follows : file_uploads = On
28th Dec 2017, 5:56 PM
💻Amey💻
💻Amey💻 - avatar