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

// 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,168
17년 전 조회 1,412
17년 전 조회 2,777
17년 전 조회 2,425
17년 전 조회 2,511
17년 전 조회 1,213
17년 전 조회 1,328
17년 전 조회 3,282
17년 전 조회 2,862
17년 전 조회 4,134
17년 전 조회 2,295
17년 전 조회 2,395
17년 전 조회 1,439
17년 전 조회 2,557
17년 전 조회 2,240
17년 전 조회 3,003
17년 전 조회 2,508
17년 전 조회 1,669
17년 전 조회 2,467
17년 전 조회 1,619
17년 전 조회 1,208
17년 전 조회 2,266
17년 전 조회 2,908
17년 전 조회 4,087
17년 전 조회 3,181
17년 전 조회 1,440
17년 전 조회 1,725
17년 전 조회 2,268
17년 전 조회 1,580
17년 전 조회 1,756
17년 전 조회 2,744
17년 전 조회 2,173
17년 전 조회 1,825
17년 전 조회 4,230
17년 전 조회 3,076
17년 전 조회 1,471
17년 전 조회 3,607
17년 전 조회 2,828
17년 전 조회 2,105
17년 전 조회 1,327
17년 전 조회 2,361
17년 전 조회 2,104
17년 전 조회 2,008
17년 전 조회 1,959
17년 전 조회 1,213
17년 전 조회 1,907
17년 전 조회 2,966
17년 전 조회 1,469
17년 전 조회 1,710
17년 전 조회 1,386
17년 전 조회 1,638
17년 전 조회 1,615
17년 전 조회 1,485
17년 전 조회 2,591
17년 전 조회 2,362
17년 전 조회 2,136
17년 전 조회 1,445
17년 전 조회 2,465
17년 전 조회 4,282
17년 전 조회 2,774
17년 전 조회 1,687
17년 전 조회 1,893
17년 전 조회 3,269
17년 전 조회 2,272
17년 전 조회 3,862
17년 전 조회 1,708
17년 전 조회 2,303
17년 전 조회 2,136
17년 전 조회 1,645
17년 전 조회 2,165
17년 전 조회 1,963
17년 전 조회 1,997
17년 전 조회 3,107
17년 전 조회 2,187
17년 전 조회 1,466
17년 전 조회 1,499
17년 전 조회 2,164
17년 전 조회 3,235
17년 전 조회 2,178
17년 전 조회 1,564
17년 전 조회 4,275
17년 전 조회 2,058
17년 전 조회 3,489
17년 전 조회 6,060
17년 전 조회 1,523
17년 전 조회 1,685
17년 전 조회 1,264
17년 전 조회 1,379
17년 전 조회 2,909
17년 전 조회 1,937
17년 전 조회 2,630
17년 전 조회 1,334
17년 전 조회 3,210
17년 전 조회 2,194
17년 전 조회 2,637
17년 전 조회 1,434
17년 전 조회 1,788
17년 전 조회 1,180
17년 전 조회 1,236
17년 전 조회 1,812