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

// 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,127
17년 전 조회 1,372
17년 전 조회 2,736
17년 전 조회 2,392
17년 전 조회 2,476
17년 전 조회 1,176
17년 전 조회 1,294
17년 전 조회 3,242
17년 전 조회 2,827
17년 전 조회 4,093
17년 전 조회 2,257
17년 전 조회 2,351
17년 전 조회 1,402
17년 전 조회 2,519
17년 전 조회 2,206
17년 전 조회 2,965
17년 전 조회 2,474
17년 전 조회 1,638
17년 전 조회 2,431
17년 전 조회 1,587
17년 전 조회 1,174
17년 전 조회 2,235
17년 전 조회 2,880
17년 전 조회 4,056
17년 전 조회 3,146
17년 전 조회 1,413
17년 전 조회 1,706
17년 전 조회 2,244
17년 전 조회 1,547
17년 전 조회 1,721
17년 전 조회 2,716
17년 전 조회 2,138
17년 전 조회 1,791
17년 전 조회 4,195
17년 전 조회 3,044
17년 전 조회 1,435
17년 전 조회 3,569
17년 전 조회 2,797
17년 전 조회 2,077
17년 전 조회 1,294
17년 전 조회 2,328
17년 전 조회 2,066
17년 전 조회 1,978
17년 전 조회 1,921
17년 전 조회 1,174
17년 전 조회 1,878
17년 전 조회 2,931
17년 전 조회 1,432
17년 전 조회 1,672
17년 전 조회 1,355
17년 전 조회 1,602
17년 전 조회 1,576
17년 전 조회 1,447
17년 전 조회 2,562
17년 전 조회 2,325
17년 전 조회 2,106
17년 전 조회 1,416
17년 전 조회 2,429
17년 전 조회 4,252
17년 전 조회 2,740
17년 전 조회 1,659
17년 전 조회 1,853
17년 전 조회 3,230
17년 전 조회 2,231
17년 전 조회 3,827
17년 전 조회 1,674
17년 전 조회 2,271
17년 전 조회 2,100
17년 전 조회 1,616
17년 전 조회 2,131
17년 전 조회 1,928
17년 전 조회 1,963
17년 전 조회 3,076
17년 전 조회 2,149
17년 전 조회 1,438
17년 전 조회 1,462
17년 전 조회 2,126
17년 전 조회 3,204
17년 전 조회 2,139
17년 전 조회 1,532
17년 전 조회 4,237
17년 전 조회 2,025
17년 전 조회 3,460
17년 전 조회 6,032
17년 전 조회 1,485
17년 전 조회 1,654
17년 전 조회 1,238
17년 전 조회 1,349
17년 전 조회 2,871
17년 전 조회 1,908
17년 전 조회 2,592
17년 전 조회 1,303
17년 전 조회 3,180
17년 전 조회 2,161
17년 전 조회 2,603
17년 전 조회 1,405
17년 전 조회 1,754
17년 전 조회 1,152
17년 전 조회 1,206
17년 전 조회 1,780
🐛 버그신고