作者Rukawa31 (hold on)
看板PHP
标题[请益] b.php使用a.php的变数
时间Sun Mar 23 13:39:25 2008
As title,
请问大家 像这种问题该怎麽解决呢
已先爬过文 但是答案似乎都不是我想要的orz
假设我写一个网页a.php 需要计算并存取一些使用者资讯的变数
之後导向另外一个网页b.php
但是b.php需要用到这些资讯
目前小弟就是不知道有何好办法抓值过来QQ
现在想到的办法只有再开一个叫做c.php的档案
存取这些变数 然後a.php和b.php都去include它
不过又感觉这麽方法不是很好@@
烦请大家给我些建议吧 谢谢
<(_ _)>
--
I never looked at the consequences of missing a big shot. Why?
Because when you think about the consequences, you always think
of a negative result.
-- Michael Jordan
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.104.213.179
1F:→ xam:session or html form with input (hidden) tag 03/23 13:55
2F:推 LPH66:依这种情况比较适合用session 03/24 00:01
3F:→ Rukawa31:嗯 我想我应该懂了 感谢^^ 03/24 00:32