Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners

MaxDB PHP Generator online Help

Prev Return to chapter overview Next

GetPOSTValue

Returns the value of a parameter named paramName from the superglobal $_POST array.

 

Signature:

function GetPOSTValue($name)

 

The code below checks if a $_POST parameter does exist and, if so, assigns its value to a variable.

 

// check if the parameter custom_var available

if (GetApplication()->IsPOSTValueSet('custom_var'))

    // found

    $params['custom_var'] = GetApplication()->GetPOSTValue('custom_var');

else

    // not found. Assign a default value.   

    $params['custom_var'] = '5 (default)';

 

See also: IsPOSTValueSet



Prev Return to chapter overview Next