How to post a username, password and multiple binary files from a single html form and process it using php? I’m not allowed to use ajax.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
first off check out these pages on PHP.net
move_uploaded_fileBut to get you started here’s a couple stub files.
uploadForm.html
processStuff.php
The HTML file shows how to set the
enctypeof the<form>& the second form show you how to access the submitted username & password & finally how to loop thru every uploaded file.As noted you MUST move the file(s) ASAP. They’re uploaded to a temp location and the system will delete them unless you deal with them. So move ’em somewhere first then do whatever you need w/ them.
Hoep this helps
Arin