Squintz
03-21-2004, 03:37 AM
I need to know how to put:
$hs->ExecX10("q20","off","0","0");
Into a link so that when i click the link that code is executed. here is the entire code that i have written and it works as soon as i reload the page but i want it to work only if i click the link.
<html>
<head></head>
<body>
<?php
$hs = new COM("HomeSeer.Application");
$hs->ExecX10("q20","off","0","0");
unset($hs);
?>
</body>
</html>
HomeSeer is an application that i use to control all the lights in my house. the $hs->ExecX10("q20","off","0","0"); tells the HomeSeer application to send out the off command to turn my light at adress q20 off. all this information is not needed but i figured you all may want to know.
$hs->ExecX10("q20","off","0","0");
Into a link so that when i click the link that code is executed. here is the entire code that i have written and it works as soon as i reload the page but i want it to work only if i click the link.
<html>
<head></head>
<body>
<?php
$hs = new COM("HomeSeer.Application");
$hs->ExecX10("q20","off","0","0");
unset($hs);
?>
</body>
</html>
HomeSeer is an application that i use to control all the lights in my house. the $hs->ExecX10("q20","off","0","0"); tells the HomeSeer application to send out the off command to turn my light at adress q20 off. all this information is not needed but i figured you all may want to know.