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>pubvars()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PubVars()
Creates public variables for all form-variables
---------------------------------------------------------------------

Syntax:

  PubVars()  ---> Nil

Arguments: None

Returns: Nil

Description:

  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.

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

  Each form-object has a name and value.  PubVars() makes public
  variables and their values available to your CGI program.

Examples:

  Form object:  < INPUT TYPE="TEXT" NAME="FirstName" VALUE="Joe" >
  Form object:  < INPUT TYPE="TEXT" NAME="LastName"  VALUE="Someone" >

  function Main()

    if !ClipXOpen()            <-- The form-data is captured here
      Quit
    endif
    header()

    PubVars() <-- Creates:  Public FirstName := "Joe"
                           Public LastName := "Someone"
    ...
    ...
    ...
  return nil

Files: Library is ClipX.Lib


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

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