Announcement

Collapse
No announcement yet.

How do I get four buttons side by side to work ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I get four buttons side by side to work ?

    How do I get four buttons side by side to work ?
    I've started with the following in the web page which produces four buttons under each other which work fine, however as soon as I move them so they are side by side they no longer work properly, which button you press it's always the last one that is activated !

    I'm sure someone can tell me this off the top of there head, but I'm stumped !

    <form method="POST">
    <input type="hidden" name="control_device" value="PPortIO Device Front Door=on">
    <input type="submit" value="Front Door" name="control_device">
    </form>
    <form method="POST">
    <input type="hidden" name="control_device" value="PPortIO Device Garden=on">
    <input type="submit" value="Garden" name="control_device">
    </form>
    <form method="POST">
    <input type="hidden" name="control_device" value="PPortIO Device Gate=on">
    <input type="submit" value="Gate" name="control_device">
    </form>
    <form method="POST">
    <input type="hidden" name="control_device" value="PPortIO Device Garage=on">
    <input type="submit" value="Garage" name="control_device">
    </form>

    #2
    Use tables to force a particular layout.

    <pre class="ip-ubbcode-code-pre">
    &lt;table&gt;
    &lt;tr&gt;
    &lt;form method="POST"&gt;
    &lt;input type="hidden" name="control_device" value="PPortIO Device Front Door=on"&gt;
    &lt;td&gt;&lt;input type="submit" value="Front Door" name="control_device"&gt;&lt;/td&gt;
    &lt;/form&gt;
    &lt;form method="POST"&gt;
    &lt;input type="hidden" name="control_device" value="PPortIO Device Garden=on"&gt;
    &lt;td&gt;&lt;input type="submit" value="Garden" name="control_device"&gt; &lt;/td&gt;
    &lt;/form&gt;
    &lt;form method="POST"&gt;
    &lt;input type="hidden" name="control_device" value="PPortIO Device Gate=on"&gt;
    &lt;td&gt;&lt;input type="submit" value="Gate" name="control_device"&gt; &lt;/td&gt;
    &lt;/form&gt;
    &lt;form method="POST"&gt;
    &lt;input type="hidden" name="control_device" value="PPortIO Device Garage=on"&gt;
    &lt;td&gt;&lt;input type="submit" value="Garage" name="control_device"&gt;&lt;/td&gt;
    &lt;/form&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    </pre>

    Jeff Farmer
    HomeSeer user since March, 2000

    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment

    Working...
    X