TUrl() > Methods xHarbour Developers Network  

oTUrl:addGetForm()

Adds data to post to a server with the URL.

Syntax

:addGetForm( <xPostData> ) --> cPostData

Arguments

<xPostData>
This parameter can be of data type Hash, Array or Character. It defines the form data to send to the server with the URL.

When <xPostData> is a Hash, its hash keys define the form fields and the hash values define the field values for a Html form. The hash values must be character strings.

When an array is passed, it must be a two dimensional array with two columns. The first column defined the field names and the second column the field values of a form.

When a character string is passed, it must bein the form "name1=value1&name2=value2"

Description

Method :addGetForm() provides a comfortable way of creating a URL encoded character string used to transmit name/value pairs of data to a server. The method returns a string holding the URL encoded data.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe