Re: [問題] asp接收form的一個問題

看板Web_Design作者 (新的暱稱)時間13年前 (2012/09/20 18:06), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《Anthony53 (安東尼)》之銘言: : 我在練習 form post的時候 我照著範例打 : 上面是html 下面我存成.asp 但是他會一直出現 HTTP 錯誤 405.0這個錯誤 : 我google很久 還是解不了 我想問是不是我哪裡語法有錯呢 請高手幫我解惑 : 願意送上500p thx : <html> : <body> : <form action="go.asp" method="post"> : <table border=1> : <tr> : <td>姓名</td> : <td><input type="text" size=15 name="name"></td> : </tr> : <td colspan=2><input type=submit value="傳送"></td> : </table> : </form> : </body> : </html> : -------------------------------------------------------------------------- : <% : name=request("name") : %> : <html> : <body> : <table border=1> : <td>留言者:<%=name%></td> : </table> : </body> : </html> 好久沒寫ASP了, 換工作之後都在玩MVC freamwork 我覺得你應該要先去了解一下405這個錯誤是啥 你的語法看起來是沒什麼問題, 不過我也有遇到一個403.x 的error 因為IIS7.5預設是不支援.asp的 如何開啟可參考連結http://ppt.cc/HgJ0 下面附上我的code index.asp <html> <body> <form action="go.asp" method="post"> <table border=1> <tr> <td>name</td> <td><input type="text" size=15 name="name"></td> </tr> <td colspan=2><input type=submit value="send"></td> </table> </form> </body> </html> go.asp <!DOCTYPE html> <html> <body> <table border="1"> <tr> <td>name:<%=request("name")%></td> </tr> </table> </body> </html> 我覺得現在學東西的人怎麼都有種壞習慣, 就是伸手就想要答案 你這次解決了這個問題,那下個問題呢 ? 問問題之前,多做點功課吧 這樣回答的人也比較好回答, 而且問問題的多半會收穫更多 共勉之 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.120.17.66
文章代碼(AID): #1GMkghIv (Web_Design)
文章代碼(AID): #1GMkghIv (Web_Design)