The HTML code generated depends on whether your site is built as Standard HTML or Dynamic HTML - see the Build Web Site screen in WebEasy to change this.


Building as Standard HTML:


When a site is built using standard HTML, one FORM element is created encompassing the entire page, with all form fields contained inside it, like so:


[code]<FORM>
...
...
<INPUT TYPE=text NAME="First_Field">
<INPUT TYPE=text NAME="Second_Field">
<INPUT TYPE=submit NAME="Send">
<INPUT TYPE=hidden NAME="Form"><!-- this field is not used -->
...
...
</FORM>[code]


When the form is submitted, the data will be sent in the following format:


First_Field=data in field 1
Second_Field=data in field 2
Form=


Building as Dynamic HTML:


When a site is built using Dynamic HTML, each form field on the page is enclosed in a separate FORM element. The submit button has JavaScript code attached to it that collates all the data on the page into a single hidden form field:


[code]
...
...
<FORM><INPUT TYPE=text NAME="First_Field"></FORM>
<FORM><INPUT TYPE=text NAME="Second_Field"></FORM>
<FORM>
<INPUT TYPE=submit NAME="Send">
<INPUT TYPE=hidden NAME="Form"><!-- only this field is posted -->
</FORM>
...
...
[code]


The main reason for the above separation is to offer full support to the most popular internet browsers when building as Dynamic HTML, with layers for positioning of the elements.


When the form is submitted, the data will be sent in the following format:


Form=
First_Field='data in field 1'
Second_Field='data in field 2'


Custom Form Definition: (WebEasy Professional only)
When a site is built using standard HTML, the Custom Script Assistant can be used to add attributes to the FORM element at the top of the page:


1) Click on the page background to deselect all items.
2) Choose "Custom Script Assistant" from the "Tools" menu.
3) Click on the "Body Elements" radio box
4) Type the full FORM tag definition required for posting the data, for example:


[code]<FORM ACTION="http://your_isp/cgi-bin/email.cgi" METHOD=POST>[code]
5) Click OK.


Note:
1) The tag ending the form [code]</FORM>[code] will be added automatically at the end of the BODY definition.
2) If the site is built as Dynamic HTML, adding this FORM tag definition will cause WebEasy to not generate individual FORM tags around each field. This will mean the form will be unlikely to work as expected in Netscape 4.
3) This technique is only available in WebEasy Professional, as the Custom Script Assistant is not available in WebEasy.