default-placeholder

Uploading multiple images with one input field in PHP


You Might Also Like

Leave a Reply

4 Comments on "Uploading multiple images with one input field in PHP"

Notify of
avatar
Sort by:   newest | oldest | most voted
Anonymous
Guest

thanks for the code…it works just fine.

Bilal Shafi
Guest

You’re Welcome!

Pan Chit Thu
Guest
I got the error for uploading images. Could you please have a look my code? $value) { if(is_uploaded_file($_FILES[‘uploaded_files’][‘tmp_name’][$key]) && $_FILES[‘uploaded_files’][‘error’][$key] == 0) { $filename = $_FILES[‘uploaded_files’][‘name’][$key]; if(move_uploaded_file($_FILES[‘uploaded_files’][‘tmp_name’][$key], ‘uploads/’. $filename)) { } else { die (‘There was a problem uploading the pictures.’); } } else { die (‘There is a problem with the uploading system.’); } } } $Images=$_POST[‘images’];$save=mysql_query(“INSERT INTO images) VALUES (‘$images’)”); header(“location: form.html”); exit(); ?>
Bilal Shafi
Guest

@Pan Chit Thu! What error message are you getting???

wpDiscuz