I currently have a basic website hosted by my Raspberry Pi. What I am trying to do is control digital outputs via HTML form buttons. Currently it works while I am on the LAN as the button form action is set to the local IP of the Arduino. I am struggling to figure out how to control these outputs from another network or from my phone.
Am I on the right track to think I need to pass the on/off commands to something like a php script hosted on the RPi and have the php script generate the Post request?
Does anyone have an example to get me pointed in the right direction?
Thanks in advance