Hints on Producing HTML for a Query Form

This help text describes how to format almost arbitrary HTML forms for use in KOM 2000.

Produce the query in HTML format. You can use HTML editors like Dreamweaver, Netscape Communicator, Adobe Golive or Microsoft Frontpage to do this.

You will get the best results if you put the query in a table, with every form artifact (text field, radio button, check box, etc.) in a separate table cell. Preferably, make the table cells with unspecified WIDTH.

Example of a well-formed query:

Did you go to the lectures? Yes No
Did you perform the work task? Yes No

What is your name?

Limit to Country:
  1. Put each interactive element is in a separate table cell.
  2. Put the descriptive text (like "Yes" and "No" in the example above) before the form interactive element (like the radio buttons in the example above) within each table cell.
  3. Ensure that the properties of all form objects are distinct. For example, two radio buttons can only share a common name if they belong to a set, of which only one can be lit. And each form object must have a different value from all the other form objects.
  4. Do not include any Submit button (<INPUT TYPE="submit">) in your form.
  5. Only copy the HTML from <TABLE> to </TABLE> into the KOM 2000 edit window, not the <FORM> and </FORM> tags, and not the SUBMIT button.
  6. Test the query in a KOM 2000 forum intended for testing of queries, before publishing the official version. Suitable forums for testing are for example in English the forum "Test meeting" at URL http://cmc.dsv.su.se/kom2k/sol/3/2/ and in Swedish the forum "Forum för test av rundfrågor" at URL http://kom2000.nu/sv/kom2000/4/19/. Do not send the invitation letter produced in step 5 of the Query Wizard to many people before you have tested the query yourself.

To make it easier to produce a new query, you can edit this sample query.

Below is shown the HTML behind the example above:

 

<table border="1"> Note that no the text up to the <head> and <form> element are not included.
 <tr>
  <td>Did you go to the lectures?</td>
  <td>
   Yes <input type="radio" name="lectures" value="yes">

Note that the descriptive text comes before the interactive element in each cell.

Note that no two radio buttons have the same name and value.

Note that each radio button is in a separate table cell.

   </td><td>
   No <input type="radio" name="lectures" value="no">
   </td>
 </tr><tr>
   <td>Did you perform the work task?</td><td>
    Yes <input type="radio" name="task" value="yes">
   </td><td>
   No <input type="radio" name="task" value="no">
   </td>  
 </tr><tr>  
   <td>  
   What is your name?<br>  
   <input type="text" name="textfield">  
   </td>  
  <td colspan="2">Limit to Country:<br>  
   <select name="country">  
    <option selected>Any</option>  
    <option>Austria</option> Note that the final </form> element is not included, and that there is no submit button in the HTML code to be pasted into KOM 2000.
    <option>...snip...</option>
    <option>United Kingdom</option>
   </select>
</td>
</tr>
</table>

KOM2000 help KOM 2000 overview KOM 2000 servers and directory