Note: It is easy to create complete file upload forms using Simfatic Forms. On hitting the “Submit” button, the form data along with the file data is posted to the script pointed to by the ‘action’ attribute of the form.
Visually design the form, get form submissions by email, save submissions to database and more. In the PHP script, we will first validate the submission and if the validation succeeds, we will send the submission by email.
This article shows you how to create a PHP based email form that supports file attachment.The article will also show you how to validate the type and size of the uploaded file.