In our code, to make sure that everyhing runs smoothly, we ensure that all of the form fields are completed before the form is submitted.
Because of this, sometimes you may see an error like this:
- You have filled something in each of the form fields
- You have selected a file from your local device for uploading
- You have put in the fields in the proper format. Example: email should be in the 'xyz@abc.efg' format.
Even after following the above steps, if, for some reason, the web server displays an error as follows:
It is likely because of one of 2 things:
- The file selected is not of .pdf format
- The file directory does not have the required permissions
To rectify this, please select a .pdf file only and make sure that the sendData.php file has atleast '755' permissions.
When everything has been executed properly, you will be redirected to the same index.php page and can see the results as in:
As you can see, the appropriate user and resume tables will be correctly mapped and updated in this case. The new user will be added to the user_master table, their resume will be added to the resume_master table, and all of the child tables will also be updated.