Syntax Parameters Example Programs Example
w3GetValAll returns the name and contents for all form fields.
call w3GetValAll (array)
|
array |
Out |
Contains the list of form field names and field contents. Attribute 1 contains the unsorted attribute names, while the corresponding value in attribute 2 contains the field contents. If the field contains more than one response, for example a select list, then sub-values are used to separate the responses. |
The following example displays the name and contents of all fields on a Web page.
ary = ""
call w3GetValAll(ary)
cnt1 = dcount(ary<1>, @VM)
for i = 1 to cnt1
cnt2 = dcount(ary<2,i>, @SVM)
CRT "Field: ":ary<1,i>:" Contents: ":
for j = 1 to cnt2
CRT ary<2,i,j>:
next j
next i