• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Everything is submitted to php without the hidden field in a post form

Marcus

Well-known member
#1
From the form below everything is submitted into my php handler, with the exception of the hidden field name="5". Does anyone have any idea why? Thanks.
Code:
 <form action="{$action}" method="post" class="rating RatingWidget">
<input type="hidden" name="abc" value="5" />
<dl>
<dt class="prompt muted">{xen:raw $prompt}</dt>
<dd>
<span class="ratings">
<button type="submit" name="rating" value="1" class="star {xen:if '{$rating} >= 1', 'Full'}{xen:if '{$rating} == 0.5', 'Half'}" title="{$xenOptions.aa_rating_1}">1</button
><button type="submit" name="rating" value="2" class="star {xen:if '{$rating} >= 2', 'Full'}{xen:if '{$rating} == 1.5', 'Half'}" title="{$xenOptions.aa_rating_2}">2</button
>
</span>
[...]
Code:
 public function actionAddRate()
{
$this->_assertPostOnly();
$dwData = $this->_input->filter(array(
'abc' => XenForo_Input::UINT,
'rating' => XenForo_Input::UINT,
)
$rating is imported, $abc is not :(