Forms Test Http Method GET |
Hidden sessionId
An easy form with two hidden fields sent to the server
using the get method.
The first hidden field holds the constant 1
The second hidden field holds a sessionId
Identifying attribute name=form1
Result:
Two hidden fields:
Two select controls:
since Build 810 ok
Hidden sessionId and a hidden id string
Like the example above but this form contains a hidden field whose value changes after each submit.
Identifying attribute name=form2
Result:
Like the example above and a additional hidden field
since Build 810 ok
One hidden field and two listboxes with multiple select enabled
This form doesn't define an action attribute.
Each attribute of the first listbox is assigned an ordinal number using the attribute
value. The second listbox doesn't define any value attributes. The strings displayed have
to be submitted instead.
The structure of this form:
<form> <!--
no action attribute defined, no method attribute defined, no identifying attribute set
-->
hidden field
text field
<select multiple> <option value=1>Option1 ...
</select> <!-- values specified in the value
attribte -->
<select multiple> <option>Opt1 ...
</select>
<!-- no value attribute specified -->
</form>
Result:
Build 810 ok
Checkboxes and radiobuttons
Netscape - IExplorer 4.0 differences
Since IExplorer 4.0 the attribute disabled may be set for each control. Effect: The value of disabled controls won't be sent to the server. Netscape simply ignores the disabled attribute.
Identifying attribute name=form3
Result when using IExplorer 4.0
Result when using Netscape
Forms that should be ignored by the recorder
This form will be mailed to Kligor.T@Gee.whiz.com when submitted
<form action="mailto:Kligor.T@Gee.whiz.com" action="post" enctype= ".... >
The following form doesn't cause network traffic anyway.
<form action="javascript:for(i= 0; i < 10;
i++) alert(it)>
<input type="submit">
</form>
Result:
Build 614 problems
Enctype=multipart/form-data, HTTP
Method Get
Both forms were added to the list of forms
Netscape and IExplorer handle this problem in a different way
<input type=file name=fname>
<input type=hidden name=Pinguin value='sessionid'>
</form>
The attribute enctype specifies the content type when the
value of 'method' is 'post'. Default is 'application/x-www-form-urlencoded'. Therefore,
'mulitpart/form-data' should only be used with method 'post' and an input control of type
'file'.
IExplorer and Netscape have different ways to solve this problem in conjunction with the
'get' method.
Identifying attribute name='malMultipart 1'
Result:
Build 614:
Enctype=multipart/form-data, HTTP
Method Get
Netscape and IExplorer handle this problem in a different way
Same as above but no control defined where enctype
'multipart/form-data' would be useful.
Result: Same as above. Netscapes sends all controls using enctype 'multipart/form-data'.
IExplorer ignores the enctype uses method 'get' instead.
<form action=data2html.asp enctype=mulitpart/form-data
method=get name='malMulitpart 2'>
<input name=someText value=ACTIVE_OPEN>
<input type=submit value=Commit>
</form>
Identifying attribute name='malMultipart 2'
Result:
Wrong attribute enctype with input type 'file'
What happens if we have an input control of type
'file' and a false enctype?
Result: Netscape and IExplorer behave the same. Default enctype
'application/x-www-form-urlencoded' will be used with methods 'post' or 'get'.
The following two forms looks like:
<form action=data2html.asp enctype=multipart/kaputt-data
method=get/post>
Identifying attribute name='malMultipart 3'
Identifying attribute name='malMultipart 4'
Forms with invalid method
Identifying attribute name=ConfusedForm1
Default enctype
Wrong http method
The form looks like:
<form action=data2html.asp method=submit>
≶input type=file name=fname>
etc...
</form>
Results:
Forms with invalid method
Identifying attribute name=ConfusedForm2
Mulitpart/form-data enctype
Wrong http method
The form looks like:
<form action=data2html.asp enctype=multipart/form-data method=submit>
≶input type=file name=fname>
etc...
</form>
Results:
Parameters in query string and in the form block
Identifying attribute name=MixedParams
Value pairs attached to action string: id='random' tengo='random'
Value pairs in the form: cfm='random' quick='random'
No enctype and no method defined. Use default.
The form looks like:
<form action=data2html.asp?id='rndvalue'&tengo='rndValue'>
<input name=cfml value='rndvalue'>
etc...
</form>
Result:
Build 614 problems
Catastrophic replay.