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

// 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,516
17년 전 조회 1,779
17년 전 조회 3,124
17년 전 조회 2,786
17년 전 조회 2,874
17년 전 조회 1,571
17년 전 조회 1,690
17년 전 조회 3,643
17년 전 조회 3,215
17년 전 조회 4,485
17년 전 조회 2,645
17년 전 조회 2,753
17년 전 조회 1,802
17년 전 조회 2,896
17년 전 조회 2,599
17년 전 조회 3,363
17년 전 조회 2,859
17년 전 조회 2,021
17년 전 조회 2,802
17년 전 조회 1,947
17년 전 조회 1,546
17년 전 조회 2,620
17년 전 조회 3,244
17년 전 조회 4,444
17년 전 조회 3,520
17년 전 조회 1,793
17년 전 조회 2,001
17년 전 조회 2,598
17년 전 조회 1,907
17년 전 조회 2,102
17년 전 조회 3,055
17년 전 조회 2,504
17년 전 조회 2,152
17년 전 조회 4,569
17년 전 조회 3,379
17년 전 조회 1,791
17년 전 조회 3,915
17년 전 조회 3,164
17년 전 조회 2,407
17년 전 조회 1,669
17년 전 조회 2,684
17년 전 조회 2,406
17년 전 조회 2,348
17년 전 조회 2,287
17년 전 조회 1,518
17년 전 조회 2,219
17년 전 조회 3,267
17년 전 조회 1,763
17년 전 조회 2,025
17년 전 조회 1,694
17년 전 조회 1,937
17년 전 조회 1,915
17년 전 조회 1,818
17년 전 조회 2,904
17년 전 조회 2,669
17년 전 조회 2,460
17년 전 조회 1,754
17년 전 조회 2,782
17년 전 조회 4,591
17년 전 조회 3,078
17년 전 조회 2,004
17년 전 조회 2,193
17년 전 조회 3,603
17년 전 조회 2,589
17년 전 조회 4,156
17년 전 조회 2,006
17년 전 조회 2,598
17년 전 조회 2,442
17년 전 조회 1,963
17년 전 조회 2,467
17년 전 조회 2,276
17년 전 조회 2,312
17년 전 조회 3,430
17년 전 조회 2,492
17년 전 조회 1,774
17년 전 조회 1,796
17년 전 조회 2,459
17년 전 조회 3,543
17년 전 조회 2,463
17년 전 조회 1,880
17년 전 조회 4,585
17년 전 조회 2,365
17년 전 조회 3,799
17년 전 조회 6,371
17년 전 조회 1,830
17년 전 조회 1,991
17년 전 조회 1,566
17년 전 조회 1,683
17년 전 조회 3,211
17년 전 조회 2,250
17년 전 조회 2,910
17년 전 조회 1,629
17년 전 조회 3,517
17년 전 조회 2,497
17년 전 조회 2,936
17년 전 조회 1,746
17년 전 조회 2,097
17년 전 조회 1,477
17년 전 조회 1,524
17년 전 조회 2,111