N

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

· 15년 전 · 1725 · 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년 전 조회 758
15년 전 조회 2,019
15년 전 조회 866
15년 전 조회 1,674
15년 전 조회 821
15년 전 조회 835
15년 전 조회 1,497
15년 전 조회 1,109
15년 전 조회 1,404
15년 전 조회 1,717
15년 전 조회 1,348
15년 전 조회 1,446
15년 전 조회 812
15년 전 조회 2,357
15년 전 조회 1,082
15년 전 조회 818
15년 전 조회 1,169
15년 전 조회 876
15년 전 조회 2,137
15년 전 조회 1,168
15년 전 조회 977
15년 전 조회 1,074
15년 전 조회 1,034
15년 전 조회 1,062
15년 전 조회 1,122
15년 전 조회 636
15년 전 조회 559
15년 전 조회 534
15년 전 조회 1,227
15년 전 조회 1,022
15년 전 조회 866
15년 전 조회 862
15년 전 조회 1,261
15년 전 조회 3,281
15년 전 조회 1,149
15년 전 조회 1,953
15년 전 조회 1,205
15년 전 조회 1,031
15년 전 조회 2,693
15년 전 조회 1,687
15년 전 조회 2,576
15년 전 조회 2,696
15년 전 조회 1,408
15년 전 조회 1,123
15년 전 조회 1,585
15년 전 조회 992
15년 전 조회 1,281
15년 전 조회 1,178
15년 전 조회 1,587
15년 전 조회 1,726
15년 전 조회 983
15년 전 조회 1,405
15년 전 조회 1,197
15년 전 조회 1,029
15년 전 조회 1,090
15년 전 조회 1,416
15년 전 조회 857
15년 전 조회 1,049
15년 전 조회 2,675
15년 전 조회 1,498
15년 전 조회 879
15년 전 조회 908
15년 전 조회 1,346
15년 전 조회 1,373
15년 전 조회 1,629
15년 전 조회 1,126
15년 전 조회 1,485
15년 전 조회 781
15년 전 조회 1,137
15년 전 조회 1,388
15년 전 조회 2,790
15년 전 조회 1,172
15년 전 조회 1,140
15년 전 조회 1,036
15년 전 조회 927
15년 전 조회 924
15년 전 조회 3,520
15년 전 조회 2,887
15년 전 조회 2,067
15년 전 조회 2,513
15년 전 조회 1,598
15년 전 조회 1,158
15년 전 조회 1,151
15년 전 조회 2,430
15년 전 조회 970
15년 전 조회 2,018
15년 전 조회 818
15년 전 조회 1,970
15년 전 조회 899
15년 전 조회 2,571
15년 전 조회 826
15년 전 조회 1,252
15년 전 조회 806
15년 전 조회 2,964
15년 전 조회 1,352
15년 전 조회 1,378
15년 전 조회 1,399
15년 전 조회 1,443
15년 전 조회 1,044
15년 전 조회 1,815