I am currently working on a php/html/javascript project. I have a form where when the user presses the submit button, it should run a javascript function and then afterwards
Replace the action attribute with the name of your PHP page, and have the validateAddImage method as an onsubmit event.
action
validateAddImage
onsubmit