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

// 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,263
17년 전 조회 1,517
17년 전 조회 2,883
17년 전 조회 2,545
17년 전 조회 2,610
17년 전 조회 1,316
17년 전 조회 1,432
17년 전 조회 3,394
17년 전 조회 2,967
17년 전 조회 4,241
17년 전 조회 2,402
17년 전 조회 2,501
17년 전 조회 1,557
17년 전 조회 2,670
17년 전 조회 2,345
17년 전 조회 3,110
17년 전 조회 2,616
17년 전 조회 1,766
17년 전 조회 2,555
17년 전 조회 1,710
17년 전 조회 1,295
17년 전 조회 2,368
17년 전 조회 3,010
17년 전 조회 4,198
17년 전 조회 3,279
17년 전 조회 1,543
17년 전 조회 1,784
17년 전 조회 2,378
17년 전 조회 1,681
17년 전 조회 1,858
17년 전 조회 2,828
17년 전 조회 2,275
17년 전 조회 1,924
17년 전 조회 4,325
17년 전 조회 3,170
17년 전 조회 1,568
17년 전 조회 3,695
17년 전 조회 2,934
17년 전 조회 2,201
17년 전 조회 1,426
17년 전 조회 2,465
17년 전 조회 2,195
17년 전 조회 2,107
17년 전 조회 2,056
17년 전 조회 1,297
17년 전 조회 2,008
17년 전 조회 3,055
17년 전 조회 1,553
17년 전 조회 1,801
17년 전 조회 1,474
17년 전 조회 1,733
17년 전 조회 1,692
17년 전 조회 1,590
17년 전 조회 2,680
17년 전 조회 2,448
17년 전 조회 2,236
17년 전 조회 1,535
17년 전 조회 2,555
17년 전 조회 4,378
17년 전 조회 2,864
17년 전 조회 1,787
17년 전 조회 1,977
17년 전 조회 3,359
17년 전 조회 2,365
17년 전 조회 3,950
17년 전 조회 1,807
17년 전 조회 2,405
17년 전 조회 2,234
17년 전 조회 1,736
17년 전 조회 2,251
17년 전 조회 2,051
17년 전 조회 2,080
17년 전 조회 3,210
17년 전 조회 2,283
17년 전 조회 1,559
17년 전 조회 1,589
17년 전 조회 2,234
17년 전 조회 3,330
17년 전 조회 2,263
17년 전 조회 1,668
17년 전 조회 4,353
17년 전 조회 2,150
17년 전 조회 3,596
17년 전 조회 6,153
17년 전 조회 1,610
17년 전 조회 1,770
17년 전 조회 1,350
17년 전 조회 1,458
17년 전 조회 3,002
17년 전 조회 2,031
17년 전 조회 2,720
17년 전 조회 1,418
17년 전 조회 3,307
17년 전 조회 2,291
17년 전 조회 2,722
17년 전 조회 1,523
17년 전 조회 1,881
17년 전 조회 1,272
17년 전 조회 1,320
17년 전 조회 1,909