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>
셀랙트박스로 불러 오는건 겨우 했습니다...
근데 그 값을 저장할수가 없습니다... 방법좀 찾아 주세요...
// 프로세싱 가격 가져오기
$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개
15년 전
우의 코드를 보고는 잘 모르겠네요..
회원정보가 $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인 경우에는 여자로 표시됩니다.
회원정보가 $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인 경우에는 여자로 표시됩니다.
15년 전
$order_opt1 = "$productInfor[a1]"; ->> $order_opt1 = $productInfor[a1];
또는
<option selected="selected" value="$productInfor[a1]"> Regular : $<?= $productInfor[a1] ?>/page </option>
이런식으로 해보세요.
또는
<option selected="selected" value="$productInfor[a1]"> Regular : $<?= $productInfor[a1] ?>/page </option>
이런식으로 해보세요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7730 | 10년 전 | 1274 | ||
| 7729 | 10년 전 | 1085 | ||
| 7728 |
잘살아보자
|
10년 전 | 552 | |
| 7727 |
잘살아보자
|
10년 전 | 457 | |
| 7726 |
잘살아보자
|
10년 전 | 792 | |
| 7725 |
잘살아보자
|
10년 전 | 518 | |
| 7724 |
잘살아보자
|
10년 전 | 428 | |
| 7723 |
잘살아보자
|
10년 전 | 497 | |
| 7722 |
잘살아보자
|
10년 전 | 429 | |
| 7721 |
잘살아보자
|
10년 전 | 469 | |
| 7720 |
잘살아보자
|
10년 전 | 408 | |
| 7719 |
비긴어게인
|
10년 전 | 651 | |
| 7718 |
|
10년 전 | 2497 | |
| 7717 |
잘살아보자
|
10년 전 | 627 | |
| 7716 |
잘살아보자
|
10년 전 | 366 | |
| 7715 |
잘살아보자
|
10년 전 | 407 | |
| 7714 |
잘살아보자
|
10년 전 | 442 | |
| 7713 | 10년 전 | 1745 | ||
| 7712 | 10년 전 | 1676 | ||
| 7711 | 10년 전 | 1067 | ||
| 7710 | 10년 전 | 1345 | ||
| 7709 | 10년 전 | 1481 | ||
| 7708 | 10년 전 | 1434 | ||
| 7707 | 10년 전 | 819 | ||
| 7706 |
별지기천사
|
10년 전 | 548 | |
| 7705 | 10년 전 | 1044 | ||
| 7704 |
ICONdesignstudio
|
10년 전 | 586 | |
| 7703 | 10년 전 | 548 | ||
| 7702 |
|
10년 전 | 685 | |
| 7701 | 10년 전 | 1378 | ||
| 7700 | 10년 전 | 1078 | ||
| 7699 | 10년 전 | 562 | ||
| 7698 | 10년 전 | 1107 | ||
| 7697 | 10년 전 | 5116 | ||
| 7696 | 10년 전 | 607 | ||
| 7695 | 10년 전 | 1651 | ||
| 7694 | 10년 전 | 1018 | ||
| 7693 | 10년 전 | 1513 | ||
| 7692 | 10년 전 | 1251 | ||
| 7691 | 10년 전 | 781 | ||
| 7690 | 10년 전 | 1360 | ||
| 7689 | 10년 전 | 978 | ||
| 7688 | 10년 전 | 553 | ||
| 7687 |
파랑새1597
|
10년 전 | 554 | |
| 7686 | 10년 전 | 803 | ||
| 7685 | 10년 전 | 1318 | ||
| 7684 | 10년 전 | 771 | ||
| 7683 | 10년 전 | 1018 | ||
| 7682 | 10년 전 | 892 | ||
| 7681 | 10년 전 | 618 | ||
| 7680 | 10년 전 | 955 | ||
| 7679 | 10년 전 | 452 | ||
| 7678 | 10년 전 | 693 | ||
| 7677 | 10년 전 | 597 | ||
| 7676 |
|
10년 전 | 915 | |
| 7675 |
|
10년 전 | 1116 | |
| 7674 | 10년 전 | 1028 | ||
| 7673 | 10년 전 | 725 | ||
| 7672 | 10년 전 | 1052 | ||
| 7671 | 10년 전 | 849 | ||
| 7670 | 10년 전 | 602 | ||
| 7669 |
mashmellow
|
10년 전 | 1200 | |
| 7668 | 10년 전 | 679 | ||
| 7667 | 10년 전 | 958 | ||
| 7666 |
senseme
|
10년 전 | 624 | |
| 7665 | 10년 전 | 478 | ||
| 7664 | 10년 전 | 1869 | ||
| 7663 |
mixx애교
|
10년 전 | 953 | |
| 7662 | 10년 전 | 980 | ||
| 7661 |
hkhkah
|
10년 전 | 753 | |
| 7660 | 10년 전 | 1039 | ||
| 7659 |
커네드커네드
|
10년 전 | 909 | |
| 7658 |
바람돌이팡
|
10년 전 | 636 | |
| 7657 | 10년 전 | 1130 | ||
| 7656 | 10년 전 | 1544 | ||
| 7655 | 10년 전 | 953 | ||
| 7654 |
개발짜증나
|
10년 전 | 832 | |
| 7653 |
네이비칼라
|
10년 전 | 864 | |
| 7652 |
밥먹고합시다
|
10년 전 | 783 | |
| 7651 |
플라이SINJI
|
10년 전 | 1485 | |
| 7650 |
개발짜증나
|
10년 전 | 1377 | |
| 7649 | 10년 전 | 431 | ||
| 7648 |
이미영ㅇㅇ
|
10년 전 | 835 | |
| 7647 | 10년 전 | 408 | ||
| 7646 | 10년 전 | 773 | ||
| 7645 | 10년 전 | 2272 | ||
| 7644 | 10년 전 | 794 | ||
| 7643 |
|
10년 전 | 2836 | |
| 7642 | 10년 전 | 1486 | ||
| 7641 | 10년 전 | 1108 | ||
| 7640 |
개발짜증나
|
10년 전 | 452 | |
| 7639 |
|
10년 전 | 787 | |
| 7638 |
개발짜증나
|
10년 전 | 1091 | |
| 7637 | 10년 전 | 1512 | ||
| 7636 | 10년 전 | 2881 | ||
| 7635 | 10년 전 | 1658 | ||
| 7634 | 10년 전 | 1822 | ||
| 7633 | 10년 전 | 2291 | ||
| 7632 | 10년 전 | 3891 | ||
| 7631 |
|
10년 전 | 1504 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기