Hej, jeg har et spørgsmål ang. select tag. Jeg ønsker at lave et direkte link til en option f.eks.
http://myweb/Input?InputNr=06 i nedenstående kode.
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>My switch</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <meta http-equiv="Pragma" content="no-cache">
- <meta http-equiv="Cache-Control" content="no-cache, no-store">
- <style type="text/css">@import url("/S16.css");</style>
- </head>
- <body>
- <form method="POST" action="switch.cgi" name="CGI">
- <h1>Switch</h1>
- <table>
- <tr><td><b>Active input</b></td><td width="10px"> </td><td>Input
- 04</td></tr><tr><td colspan="3"> </td></tr><tr><td><b>Input Selection</b></td><td><td>
- <select name="swi">
- <option value="0">Input 00</option>
- <option value="1">Input 01</option>
- <option value="2">Input 02</option>
- <option value="3">Input 03</option>
- <option value="4">Input 04</option>
- <option value="5">Input 05</option>
- <option value="6">Input 06</option>
- <option value="7">Input 07</option>
- <option value="8">Input 08</option>
- <option value="9">Input 09</option>
- </select>
- </td></tr></table>
- <p><input type="submit" value="Submit Input Selection"></p>
- </form>
- </body>
- </html>