ie10에서 po_id 값이 넘어가지 않는 문제 수정

This commit is contained in:
chicpro
2013-03-22 17:24:52 +09:00
parent 4d5853dcce
commit 273ecdc9a5
2 changed files with 30 additions and 1 deletions

27
bbs/poll.php Normal file
View File

@ -0,0 +1,27 @@
<?
include_once('./_common.php');
$field = '';
foreach($_POST as $key=>$value)
{
$field .= '<input type="hidden" name="'.$key.'" value="'.$value.'"/>'."\n";
}
$g4['title'] = '투표하기';
include_once(G4_PATH.'/head.sub.php');
?>
<form id="fpoll" name="fpoll" action="<?=G4_BBS_URL?>/poll_update.php" method="post">
<? echo $field; ?>
</form>
<script>
$(function() {
$("#fpoll").submit();
});
</script>
<?
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -44,7 +44,9 @@ function fpoll_submit(f)
return false;
}
win_poll(f.action);
var url = "<?=G4_BBS_URL?>/poll.php";
f.action = url;
win_poll(url);
return true;
}