Sending data from HTML form hosted on apache to node-red

I've set up a webpage that gets data from an SQL server and displays it onto graphs which is hosted on an Apache server. Both the SQL and Apache server are hosted on a raspberry pi. However, the page also contains a form where users can send the data to an arduino via its serial port. I have managed to send data back and forth from the pi and arduino but I cannot figure out how to obtain the Posted data from the HTML page when the user presses the submit button.

So I figured out how to obtain the data from the form but I'm not sure why I get redirected to this page after hitting submit

image

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.