N

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

· 15년 전 · 1689 · 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년 전 조회 723
15년 전 조회 1,987
15년 전 조회 820
15년 전 조회 1,635
15년 전 조회 780
15년 전 조회 789
15년 전 조회 1,458
15년 전 조회 1,072
15년 전 조회 1,359
15년 전 조회 1,676
15년 전 조회 1,313
15년 전 조회 1,409
15년 전 조회 771
15년 전 조회 2,326
15년 전 조회 1,057
15년 전 조회 788
15년 전 조회 1,133
15년 전 조회 846
15년 전 조회 2,094
15년 전 조회 1,131
15년 전 조회 932
15년 전 조회 1,038
15년 전 조회 1,003
15년 전 조회 1,012
15년 전 조회 1,083
15년 전 조회 601
15년 전 조회 526
15년 전 조회 494
15년 전 조회 1,195
15년 전 조회 989
15년 전 조회 822
15년 전 조회 824
15년 전 조회 1,226
15년 전 조회 3,244
15년 전 조회 1,108
15년 전 조회 1,916
15년 전 조회 1,168
15년 전 조회 1,000
15년 전 조회 2,648
15년 전 조회 1,649
15년 전 조회 2,542
15년 전 조회 2,656
15년 전 조회 1,366
15년 전 조회 1,079
15년 전 조회 1,541
15년 전 조회 950
15년 전 조회 1,241
15년 전 조회 1,137
15년 전 조회 1,534
15년 전 조회 1,690
15년 전 조회 937
15년 전 조회 1,365
15년 전 조회 1,155
15년 전 조회 985
15년 전 조회 1,055
15년 전 조회 1,380
15년 전 조회 814
15년 전 조회 993
15년 전 조회 2,642
15년 전 조회 1,465
15년 전 조회 835
15년 전 조회 860
15년 전 조회 1,302
15년 전 조회 1,344
15년 전 조회 1,589
15년 전 조회 1,076
15년 전 조회 1,446
15년 전 조회 735
15년 전 조회 1,095
15년 전 조회 1,346
15년 전 조회 2,763
15년 전 조회 1,129
15년 전 조회 1,100
15년 전 조회 994
15년 전 조회 874
15년 전 조회 884
15년 전 조회 3,478
15년 전 조회 2,857
15년 전 조회 2,032
15년 전 조회 2,476
15년 전 조회 1,559
15년 전 조회 1,108
15년 전 조회 1,104
15년 전 조회 2,394
15년 전 조회 935
15년 전 조회 1,976
15년 전 조회 774
15년 전 조회 1,919
15년 전 조회 856
15년 전 조회 2,528
15년 전 조회 770
15년 전 조회 1,215
15년 전 조회 758
15년 전 조회 2,930
15년 전 조회 1,309
15년 전 조회 1,342
15년 전 조회 1,352
15년 전 조회 1,404
15년 전 조회 1,017
15년 전 조회 1,781