N

급 질문 입니다... select 메뉴 db 불러오기

· 15년 전 · 1645 · 2
4개의 db를 a1, a2, a3, a4라고 했을때
셀랙트박스로 불러 오는건 겨우 했습니다...
근데 그 값을 저장할수가 없습니다... 방법좀 찾아 주세요...
// 프로세싱 가격 가져오기
$order_opt1 = "$productInfor[a1]";
$order_opt2 = "$productInfor[a2]";
$order_opt3 = "$productInfor[a3]";
$order_opt4 = "$productInfor[a4]";


<input type=hidden name=local_pick value="<?= $reserveInfor[local_pick] ?>">

<select name='rate' class=form_box>
<option selected="selected" value="$productInfor[a1]"> Regular : $<?= $order_opt1 ?>/page </option>
<option value="$productInfor[a2]"> Fast : $<?= $order_opt2 ?>/page </option>
<option value="$productInfor[a3]"> Express : $<?= $order_opt3 ?>/page </option>
<option value="$productInfor[a4]"> Urgent : $<?= $order_opt4 ?>/page </option>
</select>


뭐가 잘못된거죠???????ㅠㅠ<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|

댓글 2개

우의 코드를 보고는 잘 모르겠네요..
회원정보가 $data에 설정되고 거기서 성별항목이 sex이고 1인 경우 남자,2인 경우 여자일때
<select id="sex" name="sex">
<option value="0">선택</option>
<option value="1" <?php if($data["sex"] == 1) echo "selected";?>>남자</option>
<option value="2" <?php if($data["sex"] == 2) echo "selected";?>>여자</option>
</select>
이렇게 하면 sex가 1인 경우에는 남자로,2인 경우에는 여자로 표시됩니다.
$order_opt1 = "$productInfor[a1]"; ->> $order_opt1 = $productInfor[a1];

또는

<option selected="selected" value="$productInfor[a1]"> Regular : $<?= $productInfor[a1] ?>/page </option>

이런식으로 해보세요.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
15년 전 조회 686
15년 전 조회 1,935
15년 전 조회 777
15년 전 조회 1,583
15년 전 조회 743
15년 전 조회 746
15년 전 조회 1,415
15년 전 조회 1,036
15년 전 조회 1,318
15년 전 조회 1,627
15년 전 조회 1,266
15년 전 조회 1,357
15년 전 조회 722
15년 전 조회 2,276
15년 전 조회 1,012
15년 전 조회 748
15년 전 조회 1,092
15년 전 조회 797
15년 전 조회 2,048
15년 전 조회 1,086
15년 전 조회 905
15년 전 조회 1,004
15년 전 조회 954
15년 전 조회 966
15년 전 조회 1,036
15년 전 조회 550
15년 전 조회 475
15년 전 조회 446
15년 전 조회 1,151
15년 전 조회 948
15년 전 조회 794
15년 전 조회 790
15년 전 조회 1,193
15년 전 조회 3,201
15년 전 조회 1,065
15년 전 조회 1,874
15년 전 조회 1,134
15년 전 조회 957
15년 전 조회 2,599
15년 전 조회 1,599
15년 전 조회 2,498
15년 전 조회 2,610
15년 전 조회 1,329
15년 전 조회 1,029
15년 전 조회 1,509
15년 전 조회 909
15년 전 조회 1,203
15년 전 조회 1,101
15년 전 조회 1,500
15년 전 조회 1,646
15년 전 조회 911
15년 전 조회 1,325
15년 전 조회 1,112
15년 전 조회 943
15년 전 조회 1,016
15년 전 조회 1,338
15년 전 조회 774
15년 전 조회 954
15년 전 조회 2,614
15년 전 조회 1,427
15년 전 조회 793
15년 전 조회 826
15년 전 조회 1,263
15년 전 조회 1,297
15년 전 조회 1,556
15년 전 조회 1,041
15년 전 조회 1,408
15년 전 조회 707
15년 전 조회 1,050
15년 전 조회 1,309
15년 전 조회 2,719
15년 전 조회 1,084
15년 전 조회 1,063
15년 전 조회 967
15년 전 조회 839
15년 전 조회 850
15년 전 조회 3,444
15년 전 조회 2,810
15년 전 조회 1,989
15년 전 조회 2,433
15년 전 조회 1,526
15년 전 조회 1,075
15년 전 조회 1,070
15년 전 조회 2,350
15년 전 조회 893
15년 전 조회 1,935
15년 전 조회 733
15년 전 조회 1,887
15년 전 조회 825
15년 전 조회 2,494
15년 전 조회 742
15년 전 조회 1,174
15년 전 조회 719
15년 전 조회 2,895
15년 전 조회 1,268
15년 전 조회 1,297
15년 전 조회 1,310
15년 전 조회 1,369
15년 전 조회 981
15년 전 조회 1,740
🐛 버그신고