Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>cxformarray()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cxFormArray()
Creates an array of parsed form-data
---------------------------------------------------------------------

Syntax:

  cxFormArray()  --->  aarray

Arguments: None

Returns:

  A two-dimensional array.

Description:

  Creates a two-dimensional array of form-data passed by the web server.
  Dimension one contains the names of each form-variable as it appeared
  in the name attribute on the form.  Dimension two contains the
  corrsponding (by index) value of the form-variable.

    Example: Three TEXT INPUT objects from a form  (with default values).
             <INPUT NAME="Text1" TYPE="TEXT" VALUE="One">
             <INPUT NAME="Text2" TYPE="TEXT" VALUE="Two">
             <INPUT NAME="Text3" TYPE="TEXT" VALUE="Three">

             The call looks like this:
               aMyArray := cxFormArray()

             The array will look like this:
                aMyArray[1][1] is Text1
                aMyArray[1][1] is One
                aMyArray[2][1] is Text2
                aMyArray[2][1] is Two
                aMyArray[3][1] is Text3
                aMyArray[3][1] is Three

  The form-data is passed to the X-Hacker.orgprogram and is placed in a
  two-dimensional array.  This array is not directly accessible from
  a user program.  The data however is accessible in several ways.

  cxFormArray() is one way to get the data.  Check the See-Also
  for additional form-variable retrieval functions.

Examples:

  function Main()
    Local aMyArray := {}
    if !ClipXOpen()            <-- The protected array is created here
      Quit
    endif
    header()

    aMyArray := cxFormArray()  <-- Your copy of the array here
    ...
    ...
    ...
  return nil

Files: Library is ClipX.Lib


See Also: cxCgiStr() cxCgiValue() PubVars() xEnv()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson