Re: HTML_QuickForm problems using $_REQUEST val for hidden element

From: Date: Wed, 26 Sep 2007 15:04:22 +0000
Subject: Re: HTML_QuickForm problems using $_REQUEST val for hidden element
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27994@lists.php.net to get a copy of this message
What was the point of this response? If you were trying to be funny you failed as you also did at reading. I never said that was "fake" code but just a basic piece of code that replicates the problem I'm having. Should I paste a hundred lines of irrelevant code that produces the same result? I don't want to start a flame war here, I'm just someone new to QF who has probably made a very basic mistake and is looking for help. If you can't help me, move along. Alexey Borzov wrote:
Hi, Jeremiah Mattison wrote:
$form->addElement('hidden', 'lasttest', $_REQUEST['test']);
    
Do not assume that QF results are stored in REQUEST but use QF to read the values.
Maybe that was a bad example.. In reality I'm not using $_REQUEST at all but another variable, I was just using this as a basic test. I am not trying to read the variable from QF but pass it along as the value for the hidden element. If I just use a string it works fine but if I use any sort of variable it returns nothing.
If you show fake code, expect to get fake answers.


« previous php.pear.general (#27994) next »