필드 쪼갬. 한필드에 여러개 사용

// write_update/bbs폴더에 넣기
//연락가능한 전화번호1
$wr_2 = "$ext2_00-$ext2_01-$ext2_02";
$sql2 = " update $write_table set wr_2 = '$wr_2' where wr_id = '$wr_id' ";
sql_query($sql2);

//연락가능한 전화번호2
$wr_3 = "$ext3_00-$ext3_01-$ext3_01";
$sql3 = " update $write_table set wr_3 = '$wr_3' where wr_id = '$wr_id' ";
sql_query($sql3);

 

 

 

 


<?
//연락가능한 전화번호1
$ex2_filed = explode("-",$write[wr_2]);
$ext2_00  = $ex2_filed[0];
$ext2_01  = $ex2_filed[1];
$ext2_02  = $ex2_filed[2];

//연락가능한 전화번호2
$ex3_filed = explode("-",$write[wr_3]);
$ext3_00  = $ex3_filed[0];
$ext3_01  = $ex3_filed[1];
$ext3_02  = $ex3_filed[2];
?>

--------------------------------------------------------

<select name='ext2_00' class='field'  itemname='전화번호'>
        <option value='02' <? if($ext2_00 == "02") echo "selected"; ?>>02</option>
        <option value='031' <? if($ext2_00 == "031") echo "selected"; ?>>031</option>
        <option value='032' <? if($ext2_00 == "032") echo "selected"; ?>>032</option>
        <option value='033' <? if($ext2_00 == "033") echo "selected"; ?>>033</option>
        <option value='041' <? if($ext2_00 == "041") echo "selected"; ?>>041</option>
        <option value='042' <? if($ext2_00 == "042") echo "selected"; ?>>042</option>
        <option value='043' <? if($ext2_00 == "043") echo "selected"; ?>>043</option>
        <option value='051' <? if($ext2_00 == "051") echo "selected"; ?>>051</option>
        <option value='052' <? if($ext2_00 == "052") echo "selected"; ?>>052</option>
        <option value='053' <? if($ext2_00 == "053") echo "selected"; ?>>053</option>
        <option value='054' <? if($ext2_00 == "054") echo "selected"; ?>>054</option>
        <option value='055' <? if($ext2_00 == "055") echo "selected"; ?>>055</option>
        <option value='061' <? if($ext2_00 == "061") echo "selected"; ?>>061</option>
        <option value='062' <? if($ext2_00 == "062") echo "selected"; ?>>062</option>
        <option value='063' <? if($ext2_00 == "063") echo "selected"; ?>>063</option>
        <option value='064' <? if($ext2_00 == "064") echo "selected"; ?>>064</option>
      </select> -
      <input name='ext2_01' class=field value='<?=$ext2_01?>' type='text' size='4' maxlength='4'>  -
      <input name='ext2_02' class=field value='<?=$ext2_02?>' type='text' size='4' maxlength='4'>

[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]
|

댓글 1개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 1,139
17년 전 조회 1,389
17년 전 조회 2,756
17년 전 조회 2,405
17년 전 조회 2,495
17년 전 조회 1,195
17년 전 조회 1,313
17년 전 조회 3,255
17년 전 조회 2,844
17년 전 조회 4,112
17년 전 조회 2,273
17년 전 조회 2,367
17년 전 조회 1,419
17년 전 조회 2,539
17년 전 조회 2,223
17년 전 조회 2,983
17년 전 조회 2,492
17년 전 조회 1,652
17년 전 조회 2,447
17년 전 조회 1,603
17년 전 조회 1,188
17년 전 조회 2,248
17년 전 조회 2,896
17년 전 조회 4,072
17년 전 조회 3,161
17년 전 조회 1,427
17년 전 조회 1,710
17년 전 조회 2,253
17년 전 조회 1,561
17년 전 조회 1,737
17년 전 조회 2,730
17년 전 조회 2,153
17년 전 조회 1,808
17년 전 조회 4,212
17년 전 조회 3,059
17년 전 조회 1,451
17년 전 조회 3,585
17년 전 조회 2,811
17년 전 조회 2,090
17년 전 조회 1,310
17년 전 조회 2,349
17년 전 조회 2,082
17년 전 조회 1,995
17년 전 조회 1,942
17년 전 조회 1,190
17년 전 조회 1,893
17년 전 조회 2,949
17년 전 조회 1,450
17년 전 조회 1,689
17년 전 조회 1,371
17년 전 조회 1,619
17년 전 조회 1,595
17년 전 조회 1,466
17년 전 조회 2,574
17년 전 조회 2,341
17년 전 조회 2,120
17년 전 조회 1,430
17년 전 조회 2,448
17년 전 조회 4,266
17년 전 조회 2,751
17년 전 조회 1,678
17년 전 조회 1,870
17년 전 조회 3,246
17년 전 조회 2,253
17년 전 조회 3,844
17년 전 조회 1,694
17년 전 조회 2,284
17년 전 조회 2,115
17년 전 조회 1,632
17년 전 조회 2,149
17년 전 조회 1,946
17년 전 조회 1,979
17년 전 조회 3,091
17년 전 조회 2,167
17년 전 조회 1,453
17년 전 조회 1,479
17년 전 조회 2,141
17년 전 조회 3,217
17년 전 조회 2,157
17년 전 조회 1,551
17년 전 조회 4,254
17년 전 조회 2,040
17년 전 조회 3,474
17년 전 조회 6,045
17년 전 조회 1,503
17년 전 조회 1,671
17년 전 조회 1,253
17년 전 조회 1,368
17년 전 조회 2,889
17년 전 조회 1,920
17년 전 조회 2,610
17년 전 조회 1,319
17년 전 조회 3,195
17년 전 조회 2,179
17년 전 조회 2,621
17년 전 조회 1,421
17년 전 조회 1,769
17년 전 조회 1,167
17년 전 조회 1,222
17년 전 조회 1,798