is the posted values global ? ($http->hasPostVariable poblem)

is the posted values global ? ($http->hasPostVariable poblem)

Thursday 22 May 2003 5:37:12 am - 1 reply

Author Message

Bård Farstad

Wednesday 28 May 2003 1:58:21 am

Using the eZHTTPTool class and the postVariable function you will be able to fetch any HTTP POST variable in your script.

In a shopping workflow I use:
$http =& eZHTTPTool::instance();
if ( $http->hasPostVariable( "Name" ) )
$tmpName = $http->postVariable( "Name" );

This works on a normal form variable called Name.

--bård

Documentation: http://ez.no/doc

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.