N

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

· 15년 전 · 1639 · 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년 전 조회 680
15년 전 조회 1,929
15년 전 조회 773
15년 전 조회 1,578
15년 전 조회 738
15년 전 조회 743
15년 전 조회 1,411
15년 전 조회 1,030
15년 전 조회 1,316
15년 전 조회 1,619
15년 전 조회 1,260
15년 전 조회 1,352
15년 전 조회 716
15년 전 조회 2,271
15년 전 조회 1,008
15년 전 조회 746
15년 전 조회 1,086
15년 전 조회 795
15년 전 조회 2,043
15년 전 조회 1,080
15년 전 조회 901
15년 전 조회 997
15년 전 조회 950
15년 전 조회 960
15년 전 조회 1,032
15년 전 조회 541
15년 전 조회 470
15년 전 조회 440
15년 전 조회 1,146
15년 전 조회 942
15년 전 조회 789
15년 전 조회 787
15년 전 조회 1,190
15년 전 조회 3,199
15년 전 조회 1,061
15년 전 조회 1,868
15년 전 조회 1,131
15년 전 조회 952
15년 전 조회 2,593
15년 전 조회 1,593
15년 전 조회 2,495
15년 전 조회 2,606
15년 전 조회 1,324
15년 전 조회 1,024
15년 전 조회 1,506
15년 전 조회 908
15년 전 조회 1,199
15년 전 조회 1,098
15년 전 조회 1,498
15년 전 조회 1,640
15년 전 조회 905
15년 전 조회 1,320
15년 전 조회 1,108
15년 전 조회 942
15년 전 조회 1,012
15년 전 조회 1,332
15년 전 조회 771
15년 전 조회 951
15년 전 조회 2,608
15년 전 조회 1,419
15년 전 조회 788
15년 전 조회 818
15년 전 조회 1,258
15년 전 조회 1,294
15년 전 조회 1,550
15년 전 조회 1,039
15년 전 조회 1,403
15년 전 조회 702
15년 전 조회 1,045
15년 전 조회 1,306
15년 전 조회 2,716
15년 전 조회 1,080
15년 전 조회 1,056
15년 전 조회 961
15년 전 조회 834
15년 전 조회 846
15년 전 조회 3,440
15년 전 조회 2,806
15년 전 조회 1,984
15년 전 조회 2,431
15년 전 조회 1,524
15년 전 조회 1,068
15년 전 조회 1,066
15년 전 조회 2,343
15년 전 조회 887
15년 전 조회 1,930
15년 전 조회 728
15년 전 조회 1,884
15년 전 조회 818
15년 전 조회 2,493
15년 전 조회 736
15년 전 조회 1,170
15년 전 조회 716
15년 전 조회 2,889
15년 전 조회 1,262
15년 전 조회 1,294
15년 전 조회 1,303
15년 전 조회 1,363
15년 전 조회 975
15년 전 조회 1,733
🐛 버그신고