HTML: Trying to send position of a drop down box AND contents of input box on button press -
i should start saying not html programmer. i'm trying create should simple html page embedded server i'm working on , creating embedded c.
i've populated large html drop-down box on 1 hundred entries , sent selected drop down box when button pressed. seems work ok. i'm doing following:
<!doctype html> <html> <body> <form action="" method="post"> <fieldset> <select name="tileid"><option value="0">+61.22-kc-e02-e01<option value="1">+61.22-kc-e02-e02<option value="2">+61.22-kc-e02-e03 etc etc etc <input type="submit" name="on" value="switch tile on"> </fieldset> </form>control lights on dali buses <br> <br> </body> </html>
the drop down box, said, has on 100 entires in it.
with this, send no content embedded server broswer , seems happy.
what need add text box can add light level set light to. i've tried sorts of things such adding:
<input type="text" name="level" value="% level">
changing <form>
to:
<form action="" method="post">
but nothing works. various things either don't work or timeout when button pressed.
i got impression wanted should quite simple, i'm going round in circles now! grateful if point out i'm goign wrong , need do.
Comments
Post a Comment