Marcus
Well-known member
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.
$rating is imported, $abc is not
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,
)