묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
정보수정이 되질 않습니다..왜 그런지 알려주세요.
2004.02.17 21:47
참고사이트 : http://www.petpia.biz/info/info6_list.php?gubun=6
질문 내용 : 입력된 동물병원 정보수정을 하려고 하면요.. 입력된 병원 주소가 입력된대로 다 나오지 않고 병원거주 지역만 나와요.. 왜 그런건지 아무리 따져봐도 알수가 없네요..
예를 들어서 병원 주소가 '서울특별시 강동구 성내2동'이렇게 입력을 하면 저장도 잘 되고 목록이나 내용보기에서도 제대로 다 출력이 되는데 이상하게 수정페이지로 가면 '서울특별시'여기 까지만 나오는거예요.. 왜그럴까요?
소스는 아래와 같은데요.. 보시고 꼭좀 해답좀 많이 많이 적어주시기 바랍니다..
//--
<?php
require ("../comm_config.inc");
require ($cfg->libpath."mysql.inc");
require ($cfg->libpath."function.inc");
// DB접속
$db->connect();
// 회원로그인체크
if ( $HTTP_COOKIE_VARS["ck_member_id"] == ''+ '+ ' ) {
echo "<script language='javascript'>
alert('회원로그인 후 이용해 주세요.');
history.back();
</script>";
exit;
}
//
$qry = "select pk
,name
,id
,hospital
,passwd
,saupja_no
,area
,zip_code
,addr1
,addr2
,tel
,hp
,email
,photo
,hos_content
,history
from pethospital
where pk = $pk";
$db->query($qry);
while ($col = $db->fetch("col")){
$name = $col[name];
$id = $col[id];
$hospital = $col[hospital];
$passwd1 = $col[passwd];
$saupja_no = $col[saupja_no];
$area = $col[area];
$zipcode = $col[zip_code];
$addr1 = $col[addr1];
$addr2 = $col[addr2];
$tel = $col[tel];
$hp = $col[hp];
$email = $col[email];
$photo = $col[photo];
$hos_content = $col[hos_content];
$history = $col[history];
$zipcode1 = substr($zipcode,0,3);
$zipcode2 = substr($zipcode,3,3);
$hp1 = substr($hp,0,3);
$hp2 = substr($hp,3,10);
}
$db->free();
?>
<html>
<head>
<title>***>> petpia에 오신것을 환영합니다 <<***</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="/style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script language="JavaScript">
<!--
function isReady(FORM) {
if (FORM.hospital.value == '') {
alert ('병원명을 입력해 주세요.'+ ');
FORM.hospital.focus();
return false;
}
if (FORM.name.value == '') {
alert ('이름을 입력해 주세요.');
FORM.name.focus();
return false;
}
if (FORM.tel.value == '') {
alert ('전화번호를 입력해 주세요.');
FORM.tel.focus();
return false;
}
if (FORM.hospital.email == '') {
alert ('이메일 주소를 입력해 주세요.');
FORM.name.focus();
return false;
}
if (FORM.addr1.value == '') {
alert ('주소를 입력해 주세요.');
FORM.addr1.focus();
return false;
}
return true;
}
function send()
{
if(isReady(document.FORM))
{
document.FORM.action='info6_save.php';
document.FORM.method='post';
document.FORM.submit();
}
return;
}
// -->
</script>
</head>
<body background="/img/logo_bg_02.gif" bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="5" marginheight="0">
<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="1"></td>
<td>
<table width="765" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a name="petpia"></a>
<!--topmenu 인클루드 시작 -->
<? include('../topmenu.html'); ?>
<!--topmenu 인클루드 끝 -->
</td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="117">
<param name="movie" value="img/info.swf">
<param name="quality" value="high">
<embed src="img/info.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="117"></embed></object></td>
</tr>
<tr>
<td>
<!--중간메뉴 로그인부분 시작 -->
<? include('../loginmenu.php'); ?>
<!--중간메뉴 로그인부분 끝 -->
</td>
</tr>
<tr>
<td><img src="/img/mid.gif" width="765" height="8"></td>
</tr>
</table>
<table width="759" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"></td>
<td width="2" background="/img/l_line.gif"><img src="/img/l_line.gif" width="2" height="42"></td>
<td bgcolor="#8D8D8D" valign="top" width="148" align="center">
<!--정보방 메뉴 인클루드 시작-->
<? include('menu.html'); ?>
<!--정보방 메뉴 인클루드 끝-->
</td>
<td width="2" background="/img/l_line1.gif"><img src="/img/l_line1.gif" width="2" height="42"></td>
<td width="22"> </td>
<td width="1" valign="top" background="/img/subline.gif"><img src="/img/subline.gif" width="1" height="9"></td>
<td width="576" valign="top" align="center">
<table width="576" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/title<?php if ($gubun == '6') echo '6'; ?>.gif" width="576" height="102"></td>
</tr>
</table>
<form name="FORM" method="post" action="javascrip:send();">
<input type="hidden" name="pk" value="<? echo $pk ?>">
<input type="hidden" name="mode" value="u">
<input type="hidden" name="gubun" value="<? echo $gubun ?>">
<input type="hidden" name="passwd1" value="<? echo $passwd1 ?>">
<table width="540" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#888888" bgcolor="#F5F5F5">
<tr>
<td height="7"> </td>
</tr>
</table>
<!--내용나오고 어쩌고...시작 -->
<table border="0" cellpadding="2" class="text1" cellspacing="0">
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">이름(원장명)</font></td>
<td bgcolor="#DFE6F6"><input type="text" name="name" maxlength="20" class="input" style="WIDTH: 80px" size="20" value=<? echo $name ?>></td>
</tr>
<tr>
<td width="95" bgcolor="#999AEA" align="center"><font color="#FFFFFF">병원명</font></td>
<td width="435"> <input type="text" name="hospital" maxlength="50" class="input" style="WIDTH: 130px" size="35" value="<? echo $hospital ?>" >
</td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">비밀번호</font></td>
<td bgcolor="#DFE6F6"><input type="password" name="passwd" maxlength="50" class="input" style="WIDTH: 130px" size="35"></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">사업자번호</font></td>
<td><input type="text" name="saupja_no" maxlength="50" class="input" style="WIDTH: 170px" size="35" value=<? echo $saupja_no ?> >
<font color="#0099FF">(예) 1234567891 : '-'를
붙이지 마세요.</font></td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">e-mail</font></td>
<td bgcolor="#DFE6F6"><input type="text" name="email" maxlength="50" class="input" style="WIDTH: 130px" size="35" value=<? echo $email ?> ></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">우편번호</font></td>
<td><table>
<tr>
<td width="129"><input type="text" name="zipcode1" maxlength="3" class="input" style="WIDTH: 50px" size="3" value=<? echo $zipcode1 ?> >
<input type="text" name="zipcode2" maxlength="3" class="input" style="WIDTH: 50px" size="3" value=<? echo $zipcode2 ?> ></td>
<td width="84"><a href="javascript:;" onClick="MM_openBrWindow('/membership/addrsearch.php','','scrollbars=yes,width=508,height=430')"><img src="/membership/img/ic2.gif" width="84" height="19" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">주
소</font></td>
<td bgcolor="#DFE6F6"><input type="text" name="addr1" maxlength="100" class="input" style="WIDTH: 300px" size="35" value=<? echo $addr1 ?> ></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">상세주소</font></td>
<td><input type="text" name="addr2" maxlength="100" class="input" style="WIDTH: 300px" size="35" value=<? echo $addr2 ?> ></td>
</tr>
<tr>
<td bgcolor="#8485E6" width="95" align="center"><font color="#FFFFFF">전화번호</font></td>
<td width="435" bgcolor="#DFE6F6"> <input type="text" name="tel" maxlength="50" class="input" style="WIDTH: 130px" size="35" value="<? echo $tel ?>">
<font color="#0099FF">(예) 02-111-1111</font></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">핸드폰</font></td>
<td><table>
<tr>
<td width="50"> <input type="text" name="hp1" maxlength="3" class="input" style="WIDTH: 50px" size="3" value=<? echo $hp1 ?> ></td>
<td width="10"><div align="center">-</div></td>
<td width="161"> <input type="text" name="hp2" maxlength="50" class="input" style="WIDTH: 130px" size="35" value=<? echo $hp2 ?> >
</td>
<td width="116"><font color="#0099FF">(예)000-0000</font></td>
</tr>
</table></td>
</tr>
<tr>
<td width="95" bgcolor="#8485E6" align="center"><font color="#FFFFFF">병원사진
<br>
첨부 </font></td>
<td width="435" bgcolor="#DFE6F6"> <input type="file" name="photo" class="input" style="WIDTH: 130px" size="35" value=<? echo $photo ?>>
</tr>
<tr>
<td width="95" bgcolor="#999AEA" align="center"><font color="#FFFFFF">병원소개</font></td>
<td width="435"> <textarea name="hos_content" cols="50" rows="5"><? echo $hos_content ?></textarea>
</td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">원장약력</font></td>
<td bgcolor="#DFE6F6"><textarea rows=5 cols=50 name="history"><? echo $history ?></textarea></td>
</tr>
<tr>
<td width="95" bgcolor="#999AEA" align="center"><font color="#FFFFFF">지역</font></td>
<td width="435">
<?php
// 선택박스 생성
$caption_list = array('강원도','경기도','경상남도','경상북도','광주광역시','대구광역시','+ '대전광역시','부산광역시','서울특별시','울산광역시','인천광역시','전라남도','전라북도','제주도','충청남도','충청북도');
$value_list = array('+ '강원도','경기도','경상남도','경상북도','광주광역시','대구광역시','대전광역시','부산광역시','서울특별시','울산광역시','인천광역시','전라남도','전라북도','제주도','+ '충청남도','충청북도');
$title = '';
$script = "";
$sb_area = SBArray('area', $area, $caption_list, $value_list, $title, $script);
echo $sb_area;
?>
</td>
</tr>
</table>
<!--내용나오고 어쩌고...끝-->
<table width="540" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#888888" bgcolor="#F5F5F5">
<tr>
<td> </td>
</tr>
</table>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td width="90"> </td>
<td width="90"><a href="javascript:send()"><img src="/info/img/i_upload.gif" width="83" height="22" border="0"></a></td>
<td width="83"><a href="info6_list.php?gubun=<? echo $gubun ?>"><img src="/info/img/i_cancle.gif" width="83" height="22" border="0"></a></td>
</tr>
</table>
</form>
<table width="570" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50"> </td>
</tr>
</table>
</td>
<td bgcolor="#363032" width="1"></td>
</tr>
<tr>
<td width="7"></td>
<td width="2" background="/img/l_line.gif"></td>
<td bgcolor="#8D8D8D" valign="top" width="148" align="center"> </td>
<td width="2" background="/img/l_line1.gif"></td>
<td colspan="3">
<table width="599" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#BABABA">
<td width="558" bgcolor="#BABABA" height="1"></td>
<td width="41" bgcolor="#BABABA"></td>
</tr>
<tr>
<td width="558"> </td>
<td width="41"><a href="#petpia" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('top','','/img/top1.gif',1)"><img src="/img/top.gif" width="31" height="19" name="top" border="0"></a></td>
</tr>
</table>
</td>
<td bgcolor="#363032" width="1"></td>
</tr>
</table>
<table width="765" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--copyright 인클루드 시작 -->
<? include('../copyright.html'); ?>
<!--copyright 인클루드 끝 -->
</td>
</tr>
</table>
</td>
<td width="199" valign="top"><!--오른쪽 배너 시작 -->
<? include('http://www.petpia.biz/right_banner.php'); ?>
<!--오른쪽 배너 끝 --></td>
</tr></table>
</body>
</html>
--//
질문 내용 : 입력된 동물병원 정보수정을 하려고 하면요.. 입력된 병원 주소가 입력된대로 다 나오지 않고 병원거주 지역만 나와요.. 왜 그런건지 아무리 따져봐도 알수가 없네요..
예를 들어서 병원 주소가 '서울특별시 강동구 성내2동'이렇게 입력을 하면 저장도 잘 되고 목록이나 내용보기에서도 제대로 다 출력이 되는데 이상하게 수정페이지로 가면 '서울특별시'여기 까지만 나오는거예요.. 왜그럴까요?
소스는 아래와 같은데요.. 보시고 꼭좀 해답좀 많이 많이 적어주시기 바랍니다..
//--
<?php
require ("../comm_config.inc");
require ($cfg->libpath."mysql.inc");
require ($cfg->libpath."function.inc");
// DB접속
$db->connect();
// 회원로그인체크
if ( $HTTP_COOKIE_VARS["ck_member_id"] == ''+ '+ ' ) {
echo "<script language='javascript'>
alert('회원로그인 후 이용해 주세요.');
history.back();
</script>";
exit;
}
//
$qry = "select pk
,name
,id
,hospital
,passwd
,saupja_no
,area
,zip_code
,addr1
,addr2
,tel
,hp
,photo
,hos_content
,history
from pethospital
where pk = $pk";
$db->query($qry);
while ($col = $db->fetch("col")){
$name = $col[name];
$id = $col[id];
$hospital = $col[hospital];
$passwd1 = $col[passwd];
$saupja_no = $col[saupja_no];
$area = $col[area];
$zipcode = $col[zip_code];
$addr1 = $col[addr1];
$addr2 = $col[addr2];
$tel = $col[tel];
$hp = $col[hp];
$email = $col[email];
$photo = $col[photo];
$hos_content = $col[hos_content];
$history = $col[history];
$zipcode1 = substr($zipcode,0,3);
$zipcode2 = substr($zipcode,3,3);
$hp1 = substr($hp,0,3);
$hp2 = substr($hp,3,10);
}
$db->free();
?>
<html>
<head>
<title>***>> petpia에 오신것을 환영합니다 <<***</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="/style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script language="JavaScript">
<!--
function isReady(FORM) {
if (FORM.hospital.value == '') {
alert ('병원명을 입력해 주세요.'+ ');
FORM.hospital.focus();
return false;
}
if (FORM.name.value == '') {
alert ('이름을 입력해 주세요.');
FORM.name.focus();
return false;
}
if (FORM.tel.value == '') {
alert ('전화번호를 입력해 주세요.');
FORM.tel.focus();
return false;
}
if (FORM.hospital.email == '') {
alert ('이메일 주소를 입력해 주세요.');
FORM.name.focus();
return false;
}
if (FORM.addr1.value == '') {
alert ('주소를 입력해 주세요.');
FORM.addr1.focus();
return false;
}
return true;
}
function send()
{
if(isReady(document.FORM))
{
document.FORM.action='info6_save.php';
document.FORM.method='post';
document.FORM.submit();
}
return;
}
// -->
</script>
</head>
<body background="/img/logo_bg_02.gif" bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="5" marginheight="0">
<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="1"></td>
<td>
<table width="765" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a name="petpia"></a>
<!--topmenu 인클루드 시작 -->
<? include('../topmenu.html'); ?>
<!--topmenu 인클루드 끝 -->
</td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="117">
<param name="movie" value="img/info.swf">
<param name="quality" value="high">
<embed src="img/info.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="117"></embed></object></td>
</tr>
<tr>
<td>
<!--중간메뉴 로그인부분 시작 -->
<? include('../loginmenu.php'); ?>
<!--중간메뉴 로그인부분 끝 -->
</td>
</tr>
<tr>
<td><img src="/img/mid.gif" width="765" height="8"></td>
</tr>
</table>
<table width="759" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"></td>
<td width="2" background="/img/l_line.gif"><img src="/img/l_line.gif" width="2" height="42"></td>
<td bgcolor="#8D8D8D" valign="top" width="148" align="center">
<!--정보방 메뉴 인클루드 시작-->
<? include('menu.html'); ?>
<!--정보방 메뉴 인클루드 끝-->
</td>
<td width="2" background="/img/l_line1.gif"><img src="/img/l_line1.gif" width="2" height="42"></td>
<td width="22"> </td>
<td width="1" valign="top" background="/img/subline.gif"><img src="/img/subline.gif" width="1" height="9"></td>
<td width="576" valign="top" align="center">
<table width="576" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/title<?php if ($gubun == '6') echo '6'; ?>.gif" width="576" height="102"></td>
</tr>
</table>
<form name="FORM" method="post" action="javascrip:send();">
<input type="hidden" name="pk" value="<? echo $pk ?>">
<input type="hidden" name="mode" value="u">
<input type="hidden" name="gubun" value="<? echo $gubun ?>">
<input type="hidden" name="passwd1" value="<? echo $passwd1 ?>">
<table width="540" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#888888" bgcolor="#F5F5F5">
<tr>
<td height="7"> </td>
</tr>
</table>
<!--내용나오고 어쩌고...시작 -->
<table border="0" cellpadding="2" class="text1" cellspacing="0">
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">이름(원장명)</font></td>
<td bgcolor="#DFE6F6"><input type="text" name="name" maxlength="20" class="input" style="WIDTH: 80px" size="20" value=<? echo $name ?>></td>
</tr>
<tr>
<td width="95" bgcolor="#999AEA" align="center"><font color="#FFFFFF">병원명</font></td>
<td width="435"> <input type="text" name="hospital" maxlength="50" class="input" style="WIDTH: 130px" size="35" value="<? echo $hospital ?>" >
</td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">비밀번호</font></td>
<td bgcolor="#DFE6F6"><input type="password" name="passwd" maxlength="50" class="input" style="WIDTH: 130px" size="35"></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">사업자번호</font></td>
<td><input type="text" name="saupja_no" maxlength="50" class="input" style="WIDTH: 170px" size="35" value=<? echo $saupja_no ?> >
<font color="#0099FF">(예) 1234567891 : '-'를
붙이지 마세요.</font></td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">e-mail</font></td>
<td bgcolor="#DFE6F6"><input type="text" name="email" maxlength="50" class="input" style="WIDTH: 130px" size="35" value=<? echo $email ?> ></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">우편번호</font></td>
<td><table>
<tr>
<td width="129"><input type="text" name="zipcode1" maxlength="3" class="input" style="WIDTH: 50px" size="3" value=<? echo $zipcode1 ?> >
<input type="text" name="zipcode2" maxlength="3" class="input" style="WIDTH: 50px" size="3" value=<? echo $zipcode2 ?> ></td>
<td width="84"><a href="javascript:;" onClick="MM_openBrWindow('/membership/addrsearch.php','','scrollbars=yes,width=508,height=430')"><img src="/membership/img/ic2.gif" width="84" height="19" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">주
소</font></td>
<td bgcolor="#DFE6F6"><input type="text" name="addr1" maxlength="100" class="input" style="WIDTH: 300px" size="35" value=<? echo $addr1 ?> ></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">상세주소</font></td>
<td><input type="text" name="addr2" maxlength="100" class="input" style="WIDTH: 300px" size="35" value=<? echo $addr2 ?> ></td>
</tr>
<tr>
<td bgcolor="#8485E6" width="95" align="center"><font color="#FFFFFF">전화번호</font></td>
<td width="435" bgcolor="#DFE6F6"> <input type="text" name="tel" maxlength="50" class="input" style="WIDTH: 130px" size="35" value="<? echo $tel ?>">
<font color="#0099FF">(예) 02-111-1111</font></td>
</tr>
<tr>
<td bgcolor="#999AEA" align="center"><font color="#FFFFFF">핸드폰</font></td>
<td><table>
<tr>
<td width="50"> <input type="text" name="hp1" maxlength="3" class="input" style="WIDTH: 50px" size="3" value=<? echo $hp1 ?> ></td>
<td width="10"><div align="center">-</div></td>
<td width="161"> <input type="text" name="hp2" maxlength="50" class="input" style="WIDTH: 130px" size="35" value=<? echo $hp2 ?> >
</td>
<td width="116"><font color="#0099FF">(예)000-0000</font></td>
</tr>
</table></td>
</tr>
<tr>
<td width="95" bgcolor="#8485E6" align="center"><font color="#FFFFFF">병원사진
<br>
첨부 </font></td>
<td width="435" bgcolor="#DFE6F6"> <input type="file" name="photo" class="input" style="WIDTH: 130px" size="35" value=<? echo $photo ?>>
</tr>
<tr>
<td width="95" bgcolor="#999AEA" align="center"><font color="#FFFFFF">병원소개</font></td>
<td width="435"> <textarea name="hos_content" cols="50" rows="5"><? echo $hos_content ?></textarea>
</td>
</tr>
<tr>
<td bgcolor="#8485E6" align="center"><font color="#FFFFFF">원장약력</font></td>
<td bgcolor="#DFE6F6"><textarea rows=5 cols=50 name="history"><? echo $history ?></textarea></td>
</tr>
<tr>
<td width="95" bgcolor="#999AEA" align="center"><font color="#FFFFFF">지역</font></td>
<td width="435">
<?php
// 선택박스 생성
$caption_list = array('강원도','경기도','경상남도','경상북도','광주광역시','대구광역시','+ '대전광역시','부산광역시','서울특별시','울산광역시','인천광역시','전라남도','전라북도','제주도','충청남도','충청북도');
$value_list = array('+ '강원도','경기도','경상남도','경상북도','광주광역시','대구광역시','대전광역시','부산광역시','서울특별시','울산광역시','인천광역시','전라남도','전라북도','제주도','+ '충청남도','충청북도');
$title = '';
$script = "";
$sb_area = SBArray('area', $area, $caption_list, $value_list, $title, $script);
echo $sb_area;
?>
</td>
</tr>
</table>
<!--내용나오고 어쩌고...끝-->
<table width="540" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#888888" bgcolor="#F5F5F5">
<tr>
<td> </td>
</tr>
</table>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td width="90"> </td>
<td width="90"><a href="javascript:send()"><img src="/info/img/i_upload.gif" width="83" height="22" border="0"></a></td>
<td width="83"><a href="info6_list.php?gubun=<? echo $gubun ?>"><img src="/info/img/i_cancle.gif" width="83" height="22" border="0"></a></td>
</tr>
</table>
</form>
<table width="570" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50"> </td>
</tr>
</table>
</td>
<td bgcolor="#363032" width="1"></td>
</tr>
<tr>
<td width="7"></td>
<td width="2" background="/img/l_line.gif"></td>
<td bgcolor="#8D8D8D" valign="top" width="148" align="center"> </td>
<td width="2" background="/img/l_line1.gif"></td>
<td colspan="3">
<table width="599" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#BABABA">
<td width="558" bgcolor="#BABABA" height="1"></td>
<td width="41" bgcolor="#BABABA"></td>
</tr>
<tr>
<td width="558"> </td>
<td width="41"><a href="#petpia" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('top','','/img/top1.gif',1)"><img src="/img/top.gif" width="31" height="19" name="top" border="0"></a></td>
</tr>
</table>
</td>
<td bgcolor="#363032" width="1"></td>
</tr>
</table>
<table width="765" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--copyright 인클루드 시작 -->
<? include('../copyright.html'); ?>
<!--copyright 인클루드 끝 -->
</td>
</tr>
</table>
</td>
<td width="199" valign="top"><!--오른쪽 배너 시작 -->
<? include('http://www.petpia.biz/right_banner.php'); ?>
<!--오른쪽 배너 끝 --></td>
</tr></table>
</body>
</html>
--//
댓글 2
-
한꼬마
2004.02.17 23:26
-
박은주
2004.02.18 12:20
우와..한꼬마님!!! 최고!!!
감사합니다..^^;; 정말 감사합니다..
정말 왜 그런지 알수 없어 머리를 뜯고 또 뜯었었는데 이렇게 간단한 문제였는데..^^
한꼬마님 덕분에 오늘은 왠지 일이 잘 풀릴것 같네요~~~감사~~
<td bgcolor="#DFE6F6"><input type="text" name="addr1" maxlength="100" class="input" style="WIDTH: 300px" size="35" value=<? echo $addr1 ?> ></td>
</tr>
이부분을
<td bgcolor="#DFE6F6"><input type="text" name="addr1" maxlength="100" class="input" style="WIDTH: 300px" size="35" value="<? echo $addr1 ?>" ></td>
</tr>
바꾸세요.
다시 말하면 value="내용 내용2"
이렇게 해야 공백이 있어도 연결됩니다.
value=서울시 성북구 와
value="서울시 성북구"
는 분명히 다르겠죠. 스페이스 있는 부분에서 서울시까지만 value에 적용되어서 그런 결과가 납니다.