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

**URL:** <https://discourse.nodered.org/t/sending-data-from-html-form-hosted-on-apache-to-node-red/35408>\
**Category:** General\
**Created:** [5 November 2020 22:21 UTC](https://discourse.nodered.org/t/sending-data-from-html-form-hosted-on-apache-to-node-red/35408 "2020-11-05T22:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kchong98](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kchong98](https://discourse.nodered.org/u/kchong98)\
**Post date:** [5 November 2020 22:21 UTC](https://discourse.nodered.org/t/sending-data-from-html-form-hosted-on-apache-to-node-red/35408/1 "2020-11-05T22:21:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kchong98](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kchong98](https://discourse.nodered.org/u/kchong98)\
**Post date:** [5 November 2020 22:44 UTC](https://discourse.nodered.org/t/sending-data-from-html-form-hosted-on-apache-to-node-red/35408/2 "2020-11-05T22:44:43Z")

</div>

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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/7/c7b2a7b353d6847937e55f730b8e3a2cabbebcb1.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 January 2021 22:44 UTC](https://discourse.nodered.org/t/sending-data-from-html-form-hosted-on-apache-to-node-red/35408/3 "2021-01-04T22:44:45Z")

</div>

Closed on 4 January 2021 22:44 UTC

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