---THIS DOES NOT WORK-----
<?php
if($string != 55)
{
echo '<form action ="<?=$_SERVER[\'PHP_SELF\']?>". method = "POST"/>';
echo '<input type="submit" name="off" value="Turn OFF Grow Light"/>';
echo '</form>';
}
?>
It display's the submit button, everything LOOK's great, but when I press the button, it goes to some screwy blank page.
However, if I'm using raw html like below, everything works fine.
---THIS WORKS---
<form action ="<?=$_SERVER['PHP_SELF']?>". method = "POST"/>
<input type="submit" name="off" value="Turn OFF Grow Light"/>
</form>;