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

// 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,320
17년 전 조회 1,573
17년 전 조회 2,942
17년 전 조회 2,598
17년 전 조회 2,665
17년 전 조회 1,381
17년 전 조회 1,498
17년 전 조회 3,450
17년 전 조회 3,025
17년 전 조회 4,292
17년 전 조회 2,464
17년 전 조회 2,555
17년 전 조회 1,610
17년 전 조회 2,721
17년 전 조회 2,402
17년 전 조회 3,168
17년 전 조회 2,675
17년 전 조회 1,823
17년 전 조회 2,613
17년 전 조회 1,764
17년 전 조회 1,350
17년 전 조회 2,417
17년 전 조회 3,057
17년 전 조회 4,255
17년 전 조회 3,335
17년 전 조회 1,585
17년 전 조회 1,829
17년 전 조회 2,424
17년 전 조회 1,728
17년 전 조회 1,900
17년 전 조회 2,878
17년 전 조회 2,324
17년 전 조회 1,959
17년 전 조회 4,364
17년 전 조회 3,210
17년 전 조회 1,603
17년 전 조회 3,736
17년 전 조회 2,971
17년 전 조회 2,246
17년 전 조회 1,471
17년 전 조회 2,496
17년 전 조회 2,232
17년 전 조회 2,141
17년 전 조회 2,095
17년 전 조회 1,337
17년 전 조회 2,050
17년 전 조회 3,080
17년 전 조회 1,598
17년 전 조회 1,843
17년 전 조회 1,513
17년 전 조회 1,765
17년 전 조회 1,727
17년 전 조회 1,635
17년 전 조회 2,722
17년 전 조회 2,488
17년 전 조회 2,281
17년 전 조회 1,576
17년 전 조회 2,590
17년 전 조회 4,421
17년 전 조회 2,914
17년 전 조회 1,821
17년 전 조회 2,011
17년 전 조회 3,404
17년 전 조회 2,401
17년 전 조회 3,979
17년 전 조회 1,836
17년 전 조회 2,445
17년 전 조회 2,272
17년 전 조회 1,777
17년 전 조회 2,301
17년 전 조회 2,092
17년 전 조회 2,122
17년 전 조회 3,252
17년 전 조회 2,316
17년 전 조회 1,604
17년 전 조회 1,628
17년 전 조회 2,279
17년 전 조회 3,366
17년 전 조회 2,301
17년 전 조회 1,699
17년 전 조회 4,392
17년 전 조회 2,196
17년 전 조회 3,636
17년 전 조회 6,198
17년 전 조회 1,645
17년 전 조회 1,801
17년 전 조회 1,395
17년 전 조회 1,486
17년 전 조회 3,046
17년 전 조회 2,066
17년 전 조회 2,755
17년 전 조회 1,447
17년 전 조회 3,347
17년 전 조회 2,333
17년 전 조회 2,763
17년 전 조회 1,563
17년 전 조회 1,918
17년 전 조회 1,296
17년 전 조회 1,353
17년 전 조회 1,938