alert 코드를 수정하여 자바스크립트 off 상태에서 post 다시 값을 넘겨줄 수 있도록 수정
This commit is contained in:
@ -1,8 +1,14 @@
|
||||
<?
|
||||
global $lo_location;
|
||||
global $lo_url;
|
||||
$g4['title'] = "오류가 있습니다.";
|
||||
|
||||
include_once('./_common.php');
|
||||
|
||||
if($error) {
|
||||
$g4['title'] = "오류가 있습니다.";
|
||||
} else {
|
||||
$g4['title'] = "내용을 확인해 주세요.";
|
||||
}
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
// 필수 입력입니다.
|
||||
// 양쪽 공백 없애기
|
||||
@ -32,9 +38,6 @@ if($error) {
|
||||
$header2 = "다음 내용을 확인해 주세요.";
|
||||
}
|
||||
?>
|
||||
<div id="validation_check">
|
||||
|
||||
<h1><?=$header2?></h1>
|
||||
|
||||
<script>
|
||||
alert("<? echo $msg; ?>");
|
||||
@ -42,12 +45,32 @@ document.location.href = "<? echo $url; ?>";
|
||||
</script>
|
||||
|
||||
<noscript>
|
||||
<div id="validation_check">
|
||||
<h1><?=$header2?></h1>
|
||||
<p class="cbg">
|
||||
<?=$msg2?>
|
||||
</p>
|
||||
<? if($post) { ?>
|
||||
<form method="post" action="<?=$url?>">
|
||||
<?
|
||||
foreach($_POST as $key => $value) {
|
||||
if(strlen($value) < 1)
|
||||
continue;
|
||||
|
||||
if(preg_match("/pass|pwd|capt|url/", $key))
|
||||
continue;
|
||||
?>
|
||||
<input type="hidden" name="<?=$key?>" value="<?=$value?>">
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<input type="submit" value="돌아가기">
|
||||
</form>
|
||||
<? } else { ?>
|
||||
<div class="btn_confirm">
|
||||
<a href="<?=$url?>">돌아가기</a>
|
||||
</div>
|
||||
<? } ?>
|
||||
|
||||
<? /*
|
||||
<article id="validation_check">
|
||||
@ -70,10 +93,8 @@ document.location.href = "<? echo $url; ?>";
|
||||
<a href="<?=$url?>">돌아가기</a>
|
||||
</article>
|
||||
*/ ?>
|
||||
|
||||
</noscript>
|
||||
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<?
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
|
||||
Reference in New Issue
Block a user