필요에 의해 폼문에서 버튼을 클릭시 새창으로 뜨서 해당 submit이 처리가 되도록 할려고 하다보니...
필요하신분이 계실것 같아 공유합니다. (인터넷에서 도움받아 나름 정리한거네요)
<script language='javascript'> function paycheck(){ var gsWin = window.open('about:blank','payviewer','width=500,height=500'); var frm =document.pay; frm.action = '/payment/payreq.php'; frm.target ="payviewer"; frm.method ="post"; frm.submit(); } </script>
<form name='pay' action='/' method ="post" > <input type='hidden' name='LGD_PRODUCTINFO' value='{$oDocument->getTitle()}' title='강좌명'> <input type='hidden' name='LGD_BUYER' value='{$logged_info->user_name}' title='이름'> <input type='hidden' name='LGD_BUYERID' value='{$logged_info->user_id}' title='아이디'> <input type='hidden' name='LGD_AMOUNT' value='{$oDocument->getExtraValueHTML(5)}' title='금액'> <input type='hidden' name='LGD_BUYERIP' value='{$oDocument->getIpaddress()}' title='아이피'> <input type='hidden' name='LGD_DOCUMENT_SRL' value='{$document_srl}' title='문서번호'> <input type='hidden' name='LGD_BUYERIP' value='{$oDocument->getIpaddress()}' title='아이피'> <input type='hidden' name='LGD_BUYEREMAIL' value='{$logged_info->email_address}' title='이메일주소'> <input type='hidden' name='LGD_OID' value='{$keynum}_{$document_srl}' title='이메일주소'> </form> <input type='button' value='결제하기' onclick='paycheck()'>
Heya! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no back up. Do you have any methods to protect against hackers?