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

Subscribe to our news:
Partners

DB2 PHP Generator online Help

Prev Return to chapter overview Next

IsGETValueSet

Checks if $_GET contains a parameter named paramName. Returns true if such parameter does exist and false otherwise.

 

Signature:

function IsGETValueSet($paramName)

 

Example:

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

 

// check if the parameter custom_var available

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

    // found

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

else

   // not found. Assign a default value.   

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

 

See also: GetGETValue



Prev Return to chapter overview Next