주문상품 갯수에 따라 입력내용 출력 하는 조건문

주문상품 갯수에 따라 입력내용 출력 하는 조건문

QA

주문상품 갯수에 따라 입력내용 출력 하는 조건문

본문

조건문 질문하나 드립니다.

영카트에서 주문상품 갯수가 <?php echo number_format($sum['qty']); ?> 으로 나옵니다.

만약 주문상품 갯수가 2개이면  

 

 <div class="tbl_frm01 tbl_wrap">
            <table>
            <tbody>
            <tr>
                <th scope="row"><label for="od_name">name<strong class="sound_only"> 필수</strong></label></th>
                <td><input type="text" name="od_n1" value="<?php echo get_text($member['mb_n1']); ?>"  required class="frm_input required" maxlength="20"></td>
            </tr>
       <tr>
                <th scope="row"><label for="od_tel">Contact Number<strong class="sound_only"> 필수</strong></label></th>
                <td><input type="text" name="od_n2" value="<?php echo get_text($member['mb_n2']); ?>" required class="frm_input required" maxlength="20"></td>
            </tr>       
            <tr>
                <th scope="row"><label for="od_email">E-mail<strong class="sound_only"> 필수</strong></label></th>
                <td><input type="text" name="od_n3" value="<?php echo get_text($member['mb_n3']); ?>"  required class="frm_input required" size="35" maxlength="100"></td>
            </tr>
<tr>
                <th scope="row"><label for="od_tel">Passport Number<strong class="sound_only"> 필수</strong></label></th>
                <td><input type="text" name="od_n4" value="<?php echo get_text($member['mb_n4']); ?>" required class="frm_input required" maxlength="20"></td>
            </tr>
<tr>
                <th scope="row"><label for="od_tel">Nationality<strong class="sound_only"> 필수</strong></label></th>
                <td><input type="text" name="od_n5" value="<?php echo get_text($member['mb_n5']); ?>" required class="frm_input required" maxlength="20"></td>
            </tr>
            </tbody>
            </table>
        </div>

 

위처럼 추가입력 내용이 나오도록 하고싶습니다.

조건문을 만들면될것같은데 초보라 헤메고있습니다.

고수님들의 도움 부탁드립니다.!! 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 123,534 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT