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

// 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,342
17년 전 조회 1,591
17년 전 조회 2,957
17년 전 조회 2,620
17년 전 조회 2,680
17년 전 조회 1,402
17년 전 조회 1,522
17년 전 조회 3,476
17년 전 조회 3,050
17년 전 조회 4,310
17년 전 조회 2,488
17년 전 조회 2,575
17년 전 조회 1,631
17년 전 조회 2,738
17년 전 조회 2,427
17년 전 조회 3,192
17년 전 조회 2,693
17년 전 조회 1,846
17년 전 조회 2,629
17년 전 조회 1,783
17년 전 조회 1,371
17년 전 조회 2,441
17년 전 조회 3,075
17년 전 조회 4,277
17년 전 조회 3,354
17년 전 조회 1,608
17년 전 조회 1,846
17년 전 조회 2,440
17년 전 조회 1,748
17년 전 조회 1,924
17년 전 조회 2,900
17년 전 조회 2,339
17년 전 조회 1,978
17년 전 조회 4,380
17년 전 조회 3,233
17년 전 조회 1,624
17년 전 조회 3,758
17년 전 조회 2,988
17년 전 조회 2,263
17년 전 조회 1,486
17년 전 조회 2,519
17년 전 조회 2,258
17년 전 조회 2,167
17년 전 조회 2,112
17년 전 조회 1,365
17년 전 조회 2,070
17년 전 조회 3,098
17년 전 조회 1,617
17년 전 조회 1,863
17년 전 조회 1,533
17년 전 조회 1,784
17년 전 조회 1,751
17년 전 조회 1,656
17년 전 조회 2,737
17년 전 조회 2,517
17년 전 조회 2,304
17년 전 조회 1,593
17년 전 조회 2,609
17년 전 조회 4,440
17년 전 조회 2,933
17년 전 조회 1,839
17년 전 조회 2,029
17년 전 조회 3,434
17년 전 조회 2,420
17년 전 조회 4,003
17년 전 조회 1,854
17년 전 조회 2,461
17년 전 조회 2,296
17년 전 조회 1,798
17년 전 조회 2,317
17년 전 조회 2,117
17년 전 조회 2,143
17년 전 조회 3,275
17년 전 조회 2,339
17년 전 조회 1,622
17년 전 조회 1,649
17년 전 조회 2,297
17년 전 조회 3,391
17년 전 조회 2,317
17년 전 조회 1,723
17년 전 조회 4,414
17년 전 조회 2,216
17년 전 조회 3,655
17년 전 조회 6,215
17년 전 조회 1,670
17년 전 조회 1,820
17년 전 조회 1,413
17년 전 조회 1,505
17년 전 조회 3,064
17년 전 조회 2,085
17년 전 조회 2,772
17년 전 조회 1,468
17년 전 조회 3,361
17년 전 조회 2,351
17년 전 조회 2,784
17년 전 조회 1,581
17년 전 조회 1,935
17년 전 조회 1,319
17년 전 조회 1,373
17년 전 조회 1,956