Thursday 14 August 2003 12:38:56 pm
I have added the following code to kernal/shop/basket.php:
if ( $http->hasPostVariable( "my_post_var" ) )
{
$myVar = $http->postVariable( "my_post_var" ); } And have added this line to the product purchase form on my product pages: <input type="hidden" name="my_post_var" value="Something" /> Yet, everytime I run it, the code within the if statement is not executed. I have noticed a couple of other posts on the forum about issues much like this with the 'hasPostVariable' code within the eZHTTPTool Class, but have yet to find an explanation as to why it returns false, even when the posted variable does indeed exist. The code is placed below "$http =& eZHTTPTool::instance();" so that shouldn't be causing a problem. Any ideas on how to fix this, or pointers in the right direction? Thanks, Alex
Related Posts:
http://ez.no/developer/ez_publish_3/forum/developer/is_the_posted_values_global_httphaspostvariable_poblem http://ez.no/developer/ez_publish_3/forum/developer/passing_values_between_pages_ezhttptool_
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|