Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

ezhttp_hasvariable

Summary

Returns TRUE if the specified HTTP variable is set.

Usage

ezhttp_hasvariable( variable [, method ] )

Parameters

NameTypeDescriptionRequired
variable string The name of the variable that should be checked. Yes.
method string Source of varialbe, default is HTTP POST. No.

Returns

TRUE if the specified HTTP variable is set, FALSE otherwise.

Description

This operator makes it possible to check if an HTTP variable (GET, POST or session) specified using the "variable" parameter is set. The "method" parameter can be used to specify which type of variables the system should check (default is POST variables); the following options are available:

  • post (POST variable)
  • get (GET variable)
  • session (session variable)

Examples

Example 1

{ezhttp_hasvariable( 'user_id', 'session' )}

Returns TRUE if the "user_id" session variable is set.

Balazs Halasy (18/03/2007 2:17 pm)

Julia Shymova (27/08/2007 2:21 pm)

Balazs Halasy, Julia Shymova


Comments

There are no comments.