搜尋

首頁  >  問答  >  主體

我照著老師的思路走,可是顯示的效果,是提交資料不成功,直接重新跳到了目前的頁面

user页面.JPG注册页面.JPG

奕轩奕轩2294 天前1334

全部回覆(5)我來回復

  • s. y.30h.c. t .m.g.w.

    s. y.30h.c. t .m.g.w.2019-04-19 14:47:21

    我也是這樣  有解決的方法嗎


    回覆
    0
  • ma

    和你一樣的,即使插入資料庫成功後,也是依然跳到了註冊頁面,不會跳到所謂的首頁

    ma · 2019-07-11 20:59:15
  • 天蓬老师

    天蓬老师2018-11-15 22:28:29

    具體的錯誤提示是什麼?

    回覆
    0
  • 奕轩

    報錯 variable type error: array

    奕轩 · 2018-11-15 23:04:03
    飞仕

    朱老師好!我按照您的代碼走,註冊頁面提交後沒有反應,也沒有錯誤,所以進行不下去了。請指教。萬分感謝!發現流程如下: [ LANG ] /Applications/MAMP/htdocs/zh/thinkphp/lang/zh-cn.php [ ROUTE ] array ( ) [ HEADER ] array ( 'host' => 'zh.io', 'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', ' accept-language' => 'zh-cn', 'accept-encoding' => 'gzip, deflate', 'content-type' => 'application/x-www-form-urlencoded', 'origin' => ' http://zh.io', 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15 ', 'referer' => 'http://zh.io/index/user/register', 'upgrade-insecure-requests' => '1', 'dnt' => '1', 'content-length' => '90', 'cookie' => 'thinkphp_show_page_trace=1|2; thinkphp_show_page_trace=1|2', 'connection' => 'keep-alive', ) [ PARAM ] array ( 'name' => 'Peter', 'email' => 'peter@php.cn', 'mobile' => '12345678901', 'password' => '123456', 'password_confirm' => '123456', ) [ VIEW ] /Applications/MAMP/htdocs/zh/application/index/view/user/register.html [ array ( 0 => 'title', ) ]

    飞仕 · 2018-11-18 10:04:28
  • 取消回覆