close

通常時候,如果需要我們會傳送一個到兩個以上的get 到另外一個頁面 ( 兩個以上建議要用post 的方式較為安全)

今天就來試驗如何傳送兩個以上的get

先在route.php 設定,先以以下程碼測試

Screen Shot 2016-02-17 at 5.35.54 PM.png

在view 設定 url 兩個參數

Screen Shot 2016-02-17 at 5.38.18 PM.png

就可傳送兩個參數過去

現在再用 controller 試試

改 route

Screen Shot 2016-02-17 at 5.42.53 PM.png

再改 controller

Screen Shot 2016-02-17 at 5.43.03 PM.png

用瀏灠器中,輸入get值 試驗

Screen Shot 2016-02-17 at 5.43.55 PM.png

完成試驗!!

arrow
arrow
    文章標籤
    laravel web php
    全站熱搜
    創作者介紹
    創作者 雲橙雨林 的頭像
    雲橙雨林

    雲橙雨林

    雲橙雨林 發表在 痞客邦 留言(0) 人氣()