Skip to content
Advertisement

How to get and send values from html to a PHP page?

I created a form for image uploading. This form also includes a tag to add information about the image being uploaded. I need the text from the tag to be sent over to a page “savetofile.php” whenever ‘Upload’ button is clicked.

Currently the picture uploading works, the picture information is sent correctly, but I can’t get the text from the tag on the “savetofile.php” page.

Form

JavaScript

savetofile.php

JavaScript

uploadFile()

JavaScript

Current output:

JavaScript

Advertisement

Answer

Seems like you haven’t append notes field value. Add this after for loop,

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement