묻고답하기

주문서 작성 후.. 고객이 다시 들어와서 수정하는 부분인데..

잘 되다가 뭘 건드렸는지.. 수정이 안되네요..ㅠㅠ

도와주세요.. 급해요..ㅠㅠ

 

작성부분

 

<?php
 include("top.php");
 include("admin/conn.php");

     
     $sql=mysql_query("select * from user where id=".$_SESSION[userid]."",$conn);
     $info=mysql_fetch_array($sql);
?>

<script Language=xxjavascript>
   
    function move_save() {
        var frm = document.frm;       
            if (confirm!("历厘窍矫摆嚼聪鳖")) {
       
          frm.target = "_self";
          frm.action = "savereg.php";
          frm.submit();      
      }
     }
   

    function move_list() {
        var frm = document.p_frm;
       
  frm.target = "_self";
  frm.action = "/list.jsp";
  frm.submit();       
    }
   
    function select_zipcode() {
  var url, name, options;
 
  url = "/zip_list.jsp";
  name = "zip";
  options = "top=100,left=100,width=400,height=350,resizable=no,menubar=no,scrollbars=yes,statusbar=no";
 
  window.open(url, name, options);       
    }
</script>


<table align="center" border="0" cellspacing="0" cellpadding="5" bgcolor="#ffffff" width="639">
<form name="frm" method="POST" action="saveupdate.php?id=<?php echo $info[id];?>">
<tr height="2" bgcolor="#3c3c8c"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff">번호</td>
    <td bgcolor="#ffffff" colspan="3"><?php echo $info[id];?></td>
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff"><font color=red>*</font>****</td>
    <td bgcolor="#ffffff" colspan="3">
        <textarea name="p_contents" cols="78" rows="3" value="<?php echo $info[p_contents];?>" class="input_text"></textarea>
    </td>
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" bgcolor="#fff0ff"><font color=red>*</font>배송비</td>
    <td bgcolor="#ffffff" colspan="3">
   
        <input type="radio" name="deli_type" value="<?php $info[deli_type];?>" >
        **
        &nbsp;
        <input type="radio" name="deli_type" value="<?php $info[deli_type];?>" >
        **
        &nbsp;
        <input type="radio" name="deli_type" value="<?php $info[deli_type];?>">
        ****
        <input type="radio" name="deli_type" value="<?php $info[deli_type];?>" />
       ****
        <br>
        *****
        <br>
        <span class=small_g>**** <b>****</b> *****</span>    </td>
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" bgcolor="#fff0ff"><font color=red>*</font>****</td>
    <td width="230" bgcolor="#ffffff">
        <input type="text" name="receiver" size="20" maxlength="10" value="<?php echo $info[receiver];?>" class="input_text">
    </td>
    <td align="right" width="108" bgcolor="#fff0ff"><font color=red>*</font>****</td>
    <td width="158" bgcolor="#ffffff">
        <input type="text" name="pw" size="10" maxlength="4" value="<?php echo $info[pw];?>" class="input_text">
        &nbsp;
      <span class="small">숫자 4자리</span>    </td>    
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff"><font color=red>*</font>입금액</td>
    <td width="230" bgcolor="#ffffff">
      <input type="text" name="amt" size="20" maxlength="20" value="<?php echo $info[i_amt];?>" class="input_text"></td>
    <td align="right" width="108" bgcolor="#fff0ff"><font color=red>*</font>입금자명</td>
    <td bgcolor="#ffffff">
        <input type="text" name="payer" size="20" maxlength="10" value="<?php echo $info[payer];?>" class="input_text">
    </td>    
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
<td align="right" width="103" bgcolor="#fff0ff">****</td>
    <td bgcolor="#ffffff">
        <input type="text" name="cafe_name" size="20" maxlength="50" value="<?php echo $info[cafe_name];?>" class="input_text"> (Ex.Tealim.com)
    </td>    
    <td align="right" width="108" bgcolor="#fff0ff">****</td>
    <td bgcolor="#ffffff">
        <input type="text" name="pay_desc" size="20" maxlength="25" value="<?php echo $info[pay_desc];?>" class="input_text">
    </td>    
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff"><font color=red>*</font>핸드폰</td>
    <td bgcolor="#ffffff">
        <input type="text" name="cell_phone" size="20" maxlength="50" value="<?php echo $info[cell_phone];?>" class="input_text">
    </td>
    <td align="right" width="108" bgcolor="#fff0ff"><font color=red>*</font>전화</td>
    <td bgcolor="#ffffff">
        <input type="text" name="phone" size="20" maxlength="50" value="<?php echo $info[phone];?>" class="input_text">
    </td>    
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff"><font color=red>*</font>주소</td>
    <td bgcolor="#ffffff" colspan="3">
        <table border=0 cellpadding=0 cellspacing=0 width=100%>
        <tr>
            <td>
                <input type="text" name="deli_addr" size="80" maxlength="50" value="<?php echo $info[deli_addr];?>" class="input_text">
           </td>
        </tr>       
        </table>
    </td>
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff">고객메모</td>
    <td bgcolor="#ffffff" colspan="3">
        <textarea name="deli_req" cols="78" rows="3" value="<?php echo $info[deli_req];?>" class="txt_area"></textarea>
    </td>
</tr>
<tr height="1" bgcolor="#bfcadf"><td colspan="5"></td></tr>
<tr>
    <td align="right" width="103" bgcolor="#fff0ff">****</td>
    <td bgcolor="#ffffff">
        <input type="text" name="mall_name" size="20" maxlength="50" value="<?php echo $info[mall_name];?>" class="input_text">      
    *****    </td>
    <td align="right" width="108" bgcolor="#fff0ff">****</td>
    <td bgcolor="#ffffff">
        <input type="text" name="mall_phone" size="20" maxlength="50" value="<?php echo $info[mall_phone];?>" class="input_text">
   </td>   
</tr>
<tr height="1" bgcolor="#3c3c8c"><td colspan="5"></td></tr>
<table align="center" border="0" cellspacing="0" cellpadding="1" bgcolor="#ffffff" width="650">
<tr height="30">
 <td width="400">
     <a href="index.php"><img src="img/2_list.gif" border="0" align="absmiddle"></a>
 </td>
 <td><input type="image" value="" src="img/ok.gif" border="0" align="right"></td>
</tr>
</table>
</form>
</table>


수정부분

 

<?php

session_start();
$a=$_GET[id];
$contents = $_POST[p_contents];
$receiver = $_POST[receiver];
$password = $_POST[pw];
$i_amt = $_POST[amt];
$payer = $_POST[payer];
$type = $_POST[deli_type];
$cafe = $_POST[cafe_name];
$paydate = $_POST[pay_desc];
$phone = $_POST[phone];
$cellphone = $_POST[cell_phone];
$address = $_POST[deli_addr];
$req = $_POST[deli_req];
$company = $_POST[mall_name];
$companyphone = $_POST[mall_phone];

include("admin/conn.php");
mysql_query("UPDATE user SET p_contents='$contents',receiver='$receiver',pw='$password',i_amt='$i_amt',payer='$payer',,deli_type='$type',cafe_name='$cafe',pay_desc='$paydate',phone='$phone',cell_phone='$cellphone',deli_addr='$address',deli_req='$req',mall_name='$company',mall_phone='$companyphone' WHERE id=$a");

 
    echo "<script>alert!('Successed!');window.location!='info_view.php';</script>";
   
?>
 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
김형준509 표만들기 예러... [1] 2011.04.18 by 레디오빠
무비클립 layout.html에 jquery.js 불러오기 에러요 [1] 2011.04.18 by 카르마
막장바 asp 레이어 팝업에 대해 좀 알려주십쇼 ㅠ  
카에루레아 업데이트 후 로그인 [1] 2011.04.18 by ksdwm72
뒷치기도예술 Log를 리퍼러초기화,분석 초기화 눌르면 이런메시지 나옵니다..  
지나김 난다날아 님께 질문드립니다 (회원가입확장) [1] 2014.03.16 by NetCabin
에혀라X 특정 확장변수 관리자만 보이게 할순없나요  
gkgk2435 이 사이트처럼 하려면(일단 보고 가세요.) [1] 2011.04.17 by 레디오빠
navyFlElD 사랑비 BGM 끊김현상 [1] 2011.04.17 by 공듀
선셀로셀아이 페이지에 배경음악 넣으려면 어떻게 하나요? [1] 2011.04.17 by 한마음^^
원형일 플래시첨가된 외부페이지 불러오기를 하는데 [1] 2011.04.17 by ksdwm72
타이거즈 captcha사용시 스팸방지코드 창이 화면 위에 나타나는 문제  
마일드^^ 게시글 등록시에 기본값을 어떻게 세팅할수있나요 ? [1] file 2011.04.17 by 레디오빠
민소662 게시판에 외부인 글 올리기가 안되는 문제  
소리를만드는사람 홈페이지에다가 윈도우미디어플레이어를... [1] 2011.04.17 by 레디오빠
소리를만드는사람 메뉴 만들기좀 가르쳐주세요 ㅜㅜ [1] 2011.04.17 by 레디오빠
김가인 도메인 연결 문의 ㅠㅠ [1] 2011.04.17 by 레디오빠
Spes 텍스타일 주소 줄이는 법좀 알려주세요  
시우군 확장변수 관리자만 볼수 있게 못하나요?  
들꽃426 1.4.5.2 사용중에 사이트에 부하가 많이 걸린답니다  
hsikim 1.4.5.2 로 업그레이드 후 FaceOff 문제가 발생 [1] 2011.04.17 by hsikim
사람사는세상 갤러리 게시판 본문에 사진이 안뜨고 파일만 [1] file 2011.04.17 by 송동우
위남자 외국싸이트질문요 [3] 2011.04.17 by 송동우
류호연624 스킨제작 메뉴얼에 나오는 예제..  
김영광609 게시판 제목클릭시 새창으로 열리게 하는방법좀.. 제발요 ㅠㅠ [1] 2011.04.16 by 송동우
엘즈홈 xe로 홈페이지 만들때 레이아웃이.. [1] 2011.04.16 by NetCabin
꿈이있다 페이지 출력이 안되네요ㅠ.ㅠ [2] 2011.04.16 by 꿈이있다
unohana XE로 홈페이지 만들려고 하는데... 몇가지 질문드립니다. [1] 2011.04.16 by NetCabin
초보영이 하단텍스트 어떻게 추가하나요!? [1] 2011.04.16 by NetCabin
gaia710 웹 주소 앞에 로고를 어떻게 넣나요? [2] 2011.04.16 by unohana