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

// 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,174
17년 전 조회 1,420
17년 전 조회 2,784
17년 전 조회 2,431
17년 전 조회 2,517
17년 전 조회 1,226
17년 전 조회 1,336
17년 전 조회 3,290
17년 전 조회 2,871
17년 전 조회 4,140
17년 전 조회 2,303
17년 전 조회 2,408
17년 전 조회 1,454
17년 전 조회 2,566
17년 전 조회 2,252
17년 전 조회 3,010
17년 전 조회 2,513
17년 전 조회 1,678
17년 전 조회 2,475
17년 전 조회 1,630
17년 전 조회 1,219
17년 전 조회 2,278
17년 전 조회 2,919
17년 전 조회 4,096
17년 전 조회 3,193
17년 전 조회 1,453
17년 전 조회 1,729
17년 전 조회 2,278
17년 전 조회 1,589
17년 전 조회 1,761
17년 전 조회 2,750
17년 전 조회 2,181
17년 전 조회 1,837
17년 전 조회 4,239
17년 전 조회 3,088
17년 전 조회 1,479
17년 전 조회 3,613
17년 전 조회 2,838
17년 전 조회 2,111
17년 전 조회 1,333
17년 전 조회 2,373
17년 전 조회 2,108
17년 전 조회 2,019
17년 전 조회 1,970
17년 전 조회 1,222
17년 전 조회 1,916
17년 전 조회 2,969
17년 전 조회 1,480
17년 전 조회 1,718
17년 전 조회 1,397
17년 전 조회 1,647
17년 전 조회 1,622
17년 전 조회 1,493
17년 전 조회 2,600
17년 전 조회 2,368
17년 전 조회 2,143
17년 전 조회 1,454
17년 전 조회 2,470
17년 전 조회 4,286
17년 전 조회 2,780
17년 전 조회 1,693
17년 전 조회 1,898
17년 전 조회 3,280
17년 전 조회 2,282
17년 전 조회 3,872
17년 전 조회 1,713
17년 전 조회 2,313
17년 전 조회 2,142
17년 전 조회 1,655
17년 전 조회 2,174
17년 전 조회 1,971
17년 전 조회 2,011
17년 전 조회 3,121
17년 전 조회 2,198
17년 전 조회 1,472
17년 전 조회 1,505
17년 전 조회 2,171
17년 전 조회 3,245
17년 전 조회 2,185
17년 전 조회 1,568
17년 전 조회 4,280
17년 전 조회 2,069
17년 전 조회 3,498
17년 전 조회 6,070
17년 전 조회 1,531
17년 전 조회 1,691
17년 전 조회 1,276
17년 전 조회 1,383
17년 전 조회 2,915
17년 전 조회 1,942
17년 전 조회 2,639
17년 전 조회 1,341
17년 전 조회 3,219
17년 전 조회 2,204
17년 전 조회 2,645
17년 전 조회 1,440
17년 전 조회 1,803
17년 전 조회 1,188
17년 전 조회 1,245
17년 전 조회 1,817