Hi there.
I have seen all of the episodes and I am amazed by your system.
Great work!
In a video http://www.youtube.com/watch?v=ZUEKr_48 ... dded#t=532 you talked about PHP post.
Could you post the code please that is sent from yous switch to Apache and from Apache to a relay board.
Best regards
PHP Post code
Re: PHP Post code
I use PHP for living, so maybe I could write some mock code to answer your post.
Sending information to your apache php script:
Within my_script.php to retrieve the incoming values:
Sending to your apache script from a HTML form:
Within my_script.php to retrieve the incoming form values:
Sending information to your apache php script:
Code: Select all
http://my_address/my_script.php?var1=50&var2=20&var3=1
Code: Select all
echo $_GET['var1']; // equals 50.
echo $_GET['var2']; // equals 20.
echo $_GET['var3']; // equals 1.
Code: Select all
<form method="post" action="http://my_address/my_script.php">
<input name="var1" type="text">
<input name="var2" type="text">
<input type="submit">
</form>
Code: Select all
echo $_POST['var1'];
echo $_POST['var2'];