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

// 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,130
17년 전 조회 1,376
17년 전 조회 2,741
17년 전 조회 2,395
17년 전 조회 2,481
17년 전 조회 1,179
17년 전 조회 1,300
17년 전 조회 3,245
17년 전 조회 2,830
17년 전 조회 4,098
17년 전 조회 2,260
17년 전 조회 2,356
17년 전 조회 1,406
17년 전 조회 2,524
17년 전 조회 2,209
17년 전 조회 2,970
17년 전 조회 2,481
17년 전 조회 1,640
17년 전 조회 2,434
17년 전 조회 1,591
17년 전 조회 1,178
17년 전 조회 2,238
17년 전 조회 2,885
17년 전 조회 4,060
17년 전 조회 3,148
17년 전 조회 1,416
17년 전 조회 1,707
17년 전 조회 2,247
17년 전 조회 1,549
17년 전 조회 1,727
17년 전 조회 2,718
17년 전 조회 2,143
17년 전 조회 1,795
17년 전 조회 4,201
17년 전 조회 3,047
17년 전 조회 1,442
17년 전 조회 3,573
17년 전 조회 2,800
17년 전 조회 2,078
17년 전 조회 1,298
17년 전 조회 2,335
17년 전 조회 2,070
17년 전 조회 1,983
17년 전 조회 1,927
17년 전 조회 1,178
17년 전 조회 1,883
17년 전 조회 2,936
17년 전 조회 1,437
17년 전 조회 1,676
17년 전 조회 1,359
17년 전 조회 1,606
17년 전 조회 1,581
17년 전 조회 1,453
17년 전 조회 2,565
17년 전 조회 2,330
17년 전 조회 2,108
17년 전 조회 1,418
17년 전 조회 2,433
17년 전 조회 4,255
17년 전 조회 2,740
17년 전 조회 1,664
17년 전 조회 1,859
17년 전 조회 3,235
17년 전 조회 2,236
17년 전 조회 3,832
17년 전 조회 1,682
17년 전 조회 2,275
17년 전 조회 2,103
17년 전 조회 1,621
17년 전 조회 2,135
17년 전 조회 1,931
17년 전 조회 1,969
17년 전 조회 3,078
17년 전 조회 2,153
17년 전 조회 1,444
17년 전 조회 1,467
17년 전 조회 2,128
17년 전 조회 3,206
17년 전 조회 2,145
17년 전 조회 1,538
17년 전 조회 4,240
17년 전 조회 2,030
17년 전 조회 3,462
17년 전 조회 6,034
17년 전 조회 1,489
17년 전 조회 1,657
17년 전 조회 1,241
17년 전 조회 1,354
17년 전 조회 2,877
17년 전 조회 1,915
17년 전 조회 2,598
17년 전 조회 1,307
17년 전 조회 3,185
17년 전 조회 2,165
17년 전 조회 2,604
17년 전 조회 1,411
17년 전 조회 1,757
17년 전 조회 1,153
17년 전 조회 1,207
17년 전 조회 1,783
🐛 버그신고