PHP 學習資料
全部展開
-
在同一網站, 呼叫另一個 PHP 檔, 及帶上參數
在一個 PHP 頁面, 呼叫另一個 PHP 檔, 同時帶上參數, 就像是 POST 或 GET
例如, 在下一頁名叫 Another.php 的頁上, 用了 $OneName=$_GET['myname']
是不能用 include_once('Another.php?myname=Jacky') 的型式呼叫的
可以用 include_once('Another.php') 的方式呼叫, 但要在呼叫前, 加上 $GET['myname'] = 'Jacky' 便可
不只是 GET 可以用這方法, POST 亦是如此類推
電腦學習區 - PHP (h07show)
If you would like to contact me, please feel free E-Mail to:
jacky@ranseco.com