"# form_data"
Submit Form with FormData & Ajax | Upload Files into Server (PHP) with Ajax | File uploading with Ajax |Retrieving a FormData object from an HTML form
The FormData object lets you compile a set of key/value pairs to send using XMLHttpRequest. It is primarily intended for use in sending form data, but can be used independently from forms in order to transmit keyed data. The transmitted data is in the same format that the form's submit() method would use to send the data if the form's encoding type were set to multipart/form-data.
Using a formdata event A more recent addition to the platform than the FormData object is the formdata event โ this is fired on an HTMLFormElement object after the entry list representing the form's data is constructed. This happens when the form is submitted, but can also be triggered by the invocation of a FormData() constructor.
This allows a FormData object to be quickly obtained in response to a formdata event firing, rather than needing to put it together yourself.
Youtube Tutorial : https://youtu.be/Q15boB-VPnE
Youtube Channel : https://www.youtube.com/channel/UC2Q4oWfoMQzi6AES8Vb2vQw?view_as=subscriber
Donate to Paypal : [email protected]
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KHM59LRPNV3YY&source=url