Содержание

postForm

Fills out a form and sends the specified data to the specified address.

Syntax

postForm = function(aURL, aNames, aValues);

Parameters

  • aURL
    • functions: address where the form will be sent
  • aNames
    • functions: array of names of form fields
  • aValues
    • functions: an array of values of form fields ​​corresponding aNames

Returned value

  • functions: server response

Notes

  • Number of elements in the array aNames have to match the number of elements of array aValues

Examples

postForm('http://mysite.ru',['field1','field2','fieldN'],['value1','value2','valueN']);