[問題] PHP的接收檔裡$_POST沒有JQUERY的值

看板Ajax作者 (恨!)時間11年前 (2013/12/14 14:36), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
煩請各位先進指教 我用了TWZIPCODE,可是在PHP接受檔$_POST裡卻抓不到傳過來的值 不知道哪裡出錯了,我有PIINT看過$_POST裡面的內容了,就是沒有TWZIPCODE的那些名稱 PHP版本:PHP Version 5.2.13 <script type="text/javascript" src="" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="js/memberAdd.js"></script> <table width="80%" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;" class="itable"> <form name="addmember" action="member.php?action=insert&s=2" method="POST"> ........略......... <tr> <td height="24" align="right" valign="middle" nowrap="nowrap" style="width:130px;padding-right:10px;" bgcolor="e0e0e0"> 地址 </td> <td valign="middle" align="left"nowrap="nowrap" bgcolor="#f5f5f5" style="padding-left:10px;"> <div id="addr_1"> </div> <input name="address" type="text" class="t01" id="address" size="50" value=""> </td> </tr> <tr> ........略......... </tr> </form> </table> <script type="text/JavaScript"> $(function(){ $('#addr_1').twzipcode({ countyName: 'addr_county', districtName: 'addr_area', zipcodeName: 'addr_zip', css: ['addr-county', 'addr-area', 'addr-zip'] }); }); </script> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 112.104.132.109 解決了...感謝holoca大大 <FORM> 要把<TABLE> 包住 ※ 編輯: reeselee 來自: 112.104.132.109 (12/14 16:42)
文章代碼(AID): #1Ig_oBgR (Ajax)
文章代碼(AID): #1Ig_oBgR (Ajax)