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

// 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,339
17년 전 조회 1,589
17년 전 조회 2,954
17년 전 조회 2,617
17년 전 조회 2,677
17년 전 조회 1,400
17년 전 조회 1,515
17년 전 조회 3,471
17년 전 조회 3,046
17년 전 조회 4,303
17년 전 조회 2,484
17년 전 조회 2,570
17년 전 조회 1,627
17년 전 조회 2,736
17년 전 조회 2,424
17년 전 조회 3,190
17년 전 조회 2,689
17년 전 조회 1,845
17년 전 조회 2,625
17년 전 조회 1,782
17년 전 조회 1,367
17년 전 조회 2,438
17년 전 조회 3,070
17년 전 조회 4,275
17년 전 조회 3,348
17년 전 조회 1,604
17년 전 조회 1,845
17년 전 조회 2,438
17년 전 조회 1,744
17년 전 조회 1,919
17년 전 조회 2,899
17년 전 조회 2,339
17년 전 조회 1,975
17년 전 조회 4,376
17년 전 조회 3,233
17년 전 조회 1,621
17년 전 조회 3,752
17년 전 조회 2,985
17년 전 조회 2,257
17년 전 조회 1,482
17년 전 조회 2,514
17년 전 조회 2,253
17년 전 조회 2,158
17년 전 조회 2,108
17년 전 조회 1,363
17년 전 조회 2,065
17년 전 조회 3,094
17년 전 조회 1,614
17년 전 조회 1,859
17년 전 조회 1,531
17년 전 조회 1,780
17년 전 조회 1,748
17년 전 조회 1,654
17년 전 조회 2,733
17년 전 조회 2,514
17년 전 조회 2,301
17년 전 조회 1,588
17년 전 조회 2,605
17년 전 조회 4,438
17년 전 조회 2,931
17년 전 조회 1,835
17년 전 조회 2,026
17년 전 조회 3,426
17년 전 조회 2,415
17년 전 조회 3,997
17년 전 조회 1,852
17년 전 조회 2,458
17년 전 조회 2,294
17년 전 조회 1,794
17년 전 조회 2,314
17년 전 조회 2,112
17년 전 조회 2,140
17년 전 조회 3,269
17년 전 조회 2,336
17년 전 조회 1,618
17년 전 조회 1,647
17년 전 조회 2,297
17년 전 조회 3,388
17년 전 조회 2,317
17년 전 조회 1,722
17년 전 조회 4,414
17년 전 조회 2,210
17년 전 조회 3,647
17년 전 조회 6,211
17년 전 조회 1,668
17년 전 조회 1,816
17년 전 조회 1,408
17년 전 조회 1,498
17년 전 조회 3,059
17년 전 조회 2,078
17년 전 조회 2,771
17년 전 조회 1,465
17년 전 조회 3,358
17년 전 조회 2,350
17년 전 조회 2,780
17년 전 조회 1,578
17년 전 조회 1,931
17년 전 조회 1,317
17년 전 조회 1,370
17년 전 조회 1,954