سؤال

I want to create a multiple Drag and Drop file up-loader, in php. Again i have a code that can upload the file. But In the form I will be having text fields too. When i tried to work on that, the file is being uploaded properly, But my entries are not being saved in database. Since in the drag and Drop up-loader i don't have a button, i cant use Post Method to pass the variable.

هل كانت مفيدة؟

المحلول

Have you tried ajax ?

With jQuery :

$.ajax({ url: "your url", data: your data serialized, success: });

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top