Thanks for the prompt reply. Interesting and appears to resolve the issue. $onoff = $_POST['onoff1'] works as expected with PHP 5 but not with PHP 7.3 on localhost and not across 2 RPi's running different versions. (Worked across 2 RPi's with both PHP 5.) $onoff = $_POST['onoff1'] ?? 0; works as expected with PHP 7.3 but not with PHP 5 on localhost and not across 2 RPi's running different versions. Still to test across across 2 RPi's on PHP 7.3 but expecting success.
Hi All. I'm a web page noob that cobbled some HTML and PHP together to create a web interface for some Raspberry Pi s used for monitoring and control around the house. The pages have worked fine a few years but I have encountered an issue since upgrading one of the RPi s to the latest software. In this instance one Pi (named RPi2) has a LAMP server and one page on that server interacts with a database on another Pi (named RPi3) that has a relay drive for hot water heating power. The web page basically allows the user to check/uncheck power to hot water and writes a new line to the da