In my Video Upload Form, I've added an Image upload section,
where a File name is chosen, then the File name is renamed with a unique name,
and moved to upload/ folder.
I needed to grab the image's new file-name on the Form page, and add it to Form Field-A
before proceeding with 'Submit',
but was told "only after submission can PHP know what the new file-name is".
When I fill out everything on the Form, except one required thing,
and click Submit, I stay on that same Form page and see the message "Error - **** is required",
and I see that all fields remain filled, and I also see that my code has successfully, filled in Form Field-A with the new-filename.
So, I fill in the required thing and proceed with another 'Submit".
The Form is successful. Form Field A's info has been entered into the db.
However, I don't want every visitor to this Form to have to do that, of course.
So, how can I trigger the Form to not proceed, upon Submit, like an error has occurred,
and trigger a message, that says something like (but not this): "click Submit again"?