Re: HTML_QuickForm problems using $_REQUEST val for hidden element

From: Date: Wed, 26 Sep 2007 05:36:55 +0000
Subject: Re: HTML_QuickForm problems using $_REQUEST val for hidden element
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27991@lists.php.net to get a copy of this message
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 (#27991) next »