Developer's Manual  Function Reference  Working with server variables  getPostVar

getPostVar

Returns value of requested POST variable.


mixed getPostVar
(string variable_name [, mixed default_value])

The function getPostVar returns the value of requested POST variable or default_value if the variable doesn't exist. If default_value is omitted the function returns zero.

Example

<?
$action
= getPostVar('search');
if(!
$action)
    
drawForm();
?>
Please login to add comments.