1. 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

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 14, 2012.

  1. Marcus

    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.
     <form action="{$action}" method="post" class="rating RatingWidget">
    <input type="hidden" name="abc" value="5" />
    <dt class="prompt muted">{xen:raw $prompt}</dt>
    <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
     public function actionAddRate()
    $dwData = $this->_input->filter(array(
    'abc' => XenForo_Input::UINT,
    'rating' => XenForo_Input::UINT,
    $rating is imported, $abc is not :(
  2. Marcus

    Marcus Well-Known Member

    I figured it is because of xenforos rating script which does not give the hidden field value to the php script.

Share This Page