묻고답하기

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

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

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

 

작성부분

 

<?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 남기남
박찬 로그인문제,첨부파일문제 [1] 2009.02.28 by 박세홍659
케이준 서버 돌리시는 분 xe_document.frm 파일좀 부탁드립니다.  
써니~** 댓글등록의 버튼색깔 수정 [2] 2009.02.28 by 써니~**
Zero보드 댓글이 게시글과 함께 목록에 표시되도록 ?? [1] 2009.02.28 by 띵야
설치 문제입니다 . 설치후 도메인/xe/인덱스 들어갔더니 나오는 글 입니다. admin 도 마찬가지로.. [1] file 2009.02.28 by GUTU
dd http://love9.22.to생방송 카 지노 게임만 하면 돈되는ㅂ ㅏ카라 [2] 2009.02.28 by 저놈쥐여
Zero보드 강제로 비밀글만 쓰도록 하는 방법은 없나요?? [5] 2009.02.28 by -
민들레 rss 기능이 잠겨있다는 오류메시지는? [1] 2009.02.28 by 백성찬
앙라뿅뿅 XE 게시판 만들려면 [1] 2009.02.28 by 백성찬
이동일636 포인트 회원에게 주는법 아시는분? [2] 2009.02.28 by 이동일636
winter548 구글 애드센스 에드온 질문.... [2] 2009.02.28 by winter548
우루사 급, xe관련 궁금  
우루사 급, xe관련 궁금  
우루사 급, xe관련 궁금  
ammaket 퍼미션 설정이 안됩니다 [2] file 2009.02.28 by 장학신
bumworld XE_FILES에서 직접 파일 경로를 가져와 이미지를 보여줘도 되나요?  
가르 게시물에 링크되어있는 것 무조건 새창으로 열기  
김세환717 제로보드4 관련 해킹 질문입니다. file  
션션 name 태그 못쓰나요?  
이동일636 bmp 이미지 삽입 안되나요? [3] 2009.03.01 by 시카고
ammaket xe.full.1.1.5 tgz 관리자페이지 [5] file 2009.03.01 by 웅천
유샤인 리눅스에다 xe 설치하신분들, 왜이런 오류메세지가 뜨는 지 혹시 아십니까? [2] 2009.03.01 by 유샤인
dittouni 배경색 [1] 2009.03.01 by 닝기리쓰레빠
딩딩 작성 글 보기 (내가 쓴 글 보기) 와 관련된 질문입니다. [2] 2009.03.01 by 딩딩
유인렬 레이아웃... 질문드립니다... 꾸벅.. [2] 2009.03.01 by 유인렬
\"vusdo\" 이런 증상이 왜 생길까요?  
miso777 w3c XHTML1.0 오류경고 이게 뭔가요.? [3] 2009.03.01 by EveR™
율리스 한 문서에서 에디터 2개 이상 사용하는 방법?  
태림닷컴 제로보드는 아니지만..ㅠㅠ php 주문서 작성 후 수정부분..  
중년 게시판 본문 하단 목록 안생기게 하려면? [1] 2009.03.01 by aa