function parameter_to_input_tag($key, $value)
{
    if (is_array($value)) {
        $html = '';
        foreach ($value as $key2 => $value2) {
            $html .= parameter_to_input_tag(sprintf('%s[%s]', $key, $key2), $value2);
        }
        return $html;
    }
    return '<input type="hidden" name="' . $key . '" value="' . $value . '" />';
}
?>
" method="POST">
    <input type="hidden" name="sf_method" value="<?php 
echo $sf_request->getMethod();
?>
" />
    <input type="hidden" name="ask_confirmation" value="1" />
    <input type="hidden" name="redirect_url" value="<?php 
echo $sf_request->getReferer();
?>
" />
    <?php 
foreach ($sf_request->getParameterHolder()->getAll() as $key => $value) {
    ?>
      <?php 
    echo parameter_to_input_tag($key, $value);
    ?>
    <?php 
}
?>

    <input type="submit" name="yes" class="yes" value="<?php 
echo 'Yes';
?>
" />
    <?php 
if ($sf_request->getReferer()) {
    ?>
      <input type="submit" name="no" class="no" value="<?php 
    echo 'No';
    ?>