Warning: Undefined array key "mobile_dir" in /home/kagla/new-sir/old/common.php on line 315
주문상품 갯수에 따라 입력내용 출력 하는 조건문

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

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

QA

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

답변 1

본문

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

영카트에서 주문상품 갯수가 <?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

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,406
© SIRSOFT
현재 페이지 제일 처음으로