>  Q&A  >  본문

모달 PHP에서 데이터를 제출한 후 모달을 닫고 싶지 않음

<p>이 양식을 제출한 후에도 동일한 패턴을 유지하고 싶습니다</p> <p><code>generateBarcode.php</code>:</p> <pre class="brush:php;toolbar:false;"><form action="savegenarateBarcode.php?id=<?php echo $d1 ?>" ;</pre> <p><code>savegenerateBarcode.php</code>:</p> <pre class="brush:php;toolbar:false;"><?php 노력하다 { 세션_시작(); include('../connect.php'); $d1 = $_GET['ID']; $b = $_POST['일련번호']; $sqlm = "일련번호가 ''.$b.'''인 product_item에서 *선택; $query = $db->prepare($sqlm); $user_array = $query ->실행(); }</pre> <p>이 양식을 제출한 후 <code>generateBarcode.php(modal)</code>를 변경하지 않고 유지하려면 어떻게 해야 합니까? </p>
P粉940538947P粉940538947383일 전446

모든 응답(1)나는 대답할 것이다

  • P粉222320176

    P粉2223201762023-09-05 11:57:39

    페이지를 다시 로드하는 ajax because the form submit 방법을 사용해야 할 것 같습니다.

    으아악

    회신하다
    0
  • 취소회신하다