+ 2

How do add a form that upload images and stores visitors data?

16th Jun 2018, 5:56 PM
Michael Lourtey
Michael  Lourtey - avatar
2 Answers
+ 2
to upload images its only possible on web version of sololearn or in web browser using scripts and to save visitors date first you need to have a good knowledge on SQL database and php
16th Jun 2018, 5:59 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
Hello, Michael Lourtey ! here is a simple php example $files = $_FILES["fieldname"]; $type = $files['type']; $size = $files['size']; $imgPath = $files['tmp_name']; header('http/1.1 200 ok'); header('Content-Type:'.$type); header('Content-Length: ' . $size); readfile($imgPath); https://www.quora.com/How-can-we-display-an-uploaded-image-on-a-page-in-PHP-before-it-is-stored-to-the-database
16th Jun 2018, 6:05 PM
Alexander Sokolov
Alexander Sokolov - avatar