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>
이런식으로 해보세요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2930 |
마케팅메지션
|
15년 전 | 965 | |
| 2929 |
마케팅메지션
|
15년 전 | 925 | |
| 2928 | 15년 전 | 1059 | ||
| 2927 | 15년 전 | 852 | ||
| 2926 | 15년 전 | 857 | ||
| 2925 | 15년 전 | 750 | ||
| 2924 | 15년 전 | 4492 | ||
| 2923 |
VBASP
|
15년 전 | 954 | |
| 2922 |
프리랜서개발자
|
15년 전 | 663 | |
| 2921 | 15년 전 | 1077 | ||
| 2920 | 15년 전 | 1044 | ||
| 2919 | 15년 전 | 1175 | ||
| 2918 | 15년 전 | 852 | ||
| 2917 | 15년 전 | 983 | ||
| 2916 |
마케팅메지션
|
15년 전 | 968 | |
| 2915 | 15년 전 | 924 | ||
| 2914 |
|
15년 전 | 806 | |
| 2913 | 15년 전 | 869 | ||
| 2912 | 15년 전 | 989 | ||
| 2911 |
|
15년 전 | 802 | |
| 2910 |
|
15년 전 | 801 | |
| 2909 |
|
15년 전 | 889 | |
| 2908 | 15년 전 | 812 | ||
| 2907 | 15년 전 | 788 | ||
| 2906 | 15년 전 | 803 | ||
| 2905 | 15년 전 | 796 | ||
| 2904 | 15년 전 | 814 | ||
| 2903 | 15년 전 | 754 | ||
| 2902 | 15년 전 | 766 | ||
| 2901 | 15년 전 | 741 | ||
| 2900 | 15년 전 | 970 | ||
| 2899 | 15년 전 | 903 | ||
| 2898 | 15년 전 | 761 | ||
| 2897 |
|
15년 전 | 783 | |
| 2896 | 15년 전 | 709 | ||
| 2895 |
|
15년 전 | 1880 | |
| 2894 | 15년 전 | 926 | ||
| 2893 | 15년 전 | 721 | ||
| 2892 | 15년 전 | 866 | ||
| 2891 | 15년 전 | 766 | ||
| 2890 |
|
15년 전 | 898 | |
| 2889 | 15년 전 | 769 | ||
| 2888 |
|
15년 전 | 867 | |
| 2887 | 15년 전 | 823 | ||
| 2886 | 15년 전 | 746 | ||
| 2885 | 15년 전 | 906 | ||
| 2884 | 15년 전 | 704 | ||
| 2883 |
마케팅메지션
|
15년 전 | 850 | |
| 2882 |
마케팅메지션
|
15년 전 | 903 | |
| 2881 | 15년 전 | 1193 | ||
| 2880 |
마케팅메지션
|
15년 전 | 783 | |
| 2879 | 15년 전 | 833 | ||
| 2878 | 15년 전 | 865 | ||
| 2877 |
라디오켓츠
|
15년 전 | 1444 | |
| 2876 |
|
15년 전 | 806 | |
| 2875 | 15년 전 | 959 | ||
| 2874 | 15년 전 | 1362 | ||
| 2873 | 15년 전 | 825 | ||
| 2872 |
|
15년 전 | 838 | |
| 2871 |
|
15년 전 | 729 | |
| 2870 | 15년 전 | 777 | ||
| 2869 |
마케팅메지션
|
15년 전 | 760 | |
| 2868 | 15년 전 | 1938 | ||
| 2867 |
|
15년 전 | 862 | |
| 2866 | 15년 전 | 903 | ||
| 2865 | 15년 전 | 821 | ||
| 2864 | 15년 전 | 1297 | ||
| 2863 | 15년 전 | 1208 | ||
| 2862 |
|
15년 전 | 845 | |
| 2861 | 15년 전 | 784 | ||
| 2860 | 15년 전 | 1080 | ||
| 2859 |
|
15년 전 | 650 | |
| 2858 |
|
15년 전 | 736 | |
| 2857 |
|
15년 전 | 794 | |
| 2856 |
마케팅메지션
|
15년 전 | 759 | |
| 2855 |
마케팅메지션
|
15년 전 | 714 | |
| 2854 | 15년 전 | 970 | ||
| 2853 | 15년 전 | 802 | ||
| 2852 |
|
15년 전 | 768 | |
| 2851 | 15년 전 | 715 | ||
| 2850 | 15년 전 | 809 | ||
| 2849 | 15년 전 | 2444 | ||
| 2848 |
Mentor
|
15년 전 | 801 | |
| 2847 |
마케팅메지션
|
15년 전 | 774 | |
| 2846 | 15년 전 | 781 | ||
| 2845 | 15년 전 | 755 | ||
| 2844 | 15년 전 | 974 | ||
| 2843 |
마케팅메지션
|
15년 전 | 704 | |
| 2842 | 15년 전 | 1043 | ||
| 2841 | 15년 전 | 825 | ||
| 2840 | 15년 전 | 839 | ||
| 2839 | 15년 전 | 1141 | ||
| 2838 | 15년 전 | 732 | ||
| 2837 | 15년 전 | 771 | ||
| 2836 | 15년 전 | 666 | ||
| 2835 |
마케팅메지션
|
15년 전 | 843 | |
| 2834 |
마케팅메지션
|
15년 전 | 671 | |
| 2833 |
|
15년 전 | 1122 | |
| 2832 |
|
15년 전 | 794 | |
| 2831 |
Mentor
|
15년 전 | 767 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기