I have a page with some input fileds (like name, password and etc.). Where the user click on submit, it loads all the fields to a file which located in the server.
I want to create another field, which is input type for file, that upload the file with specific location
Here is the relevant code
input filed:
<input type="text" name="arr" class="form-control" ng-model="arr['1']" required="">
input file form:
<input type="file" name="fileToUpload" id="fileToUpload">
The submit button:
<button type="submit" style="float:center;" class="btn btn-primar" ng-click="submitForm(true)">Submit</button>
submitForm is loaded the field to a specific file.
I have php script for upload files.
My issue is that I want that when I'll click on submit, it will do both: upload the file and load all the fileds to specific file (execute the php file and the submitForm function). In all the example I see, the upload process is a seprate process (with submit button for the specific file).