关于表单提交的紧急求助 url传递或者session/cookie都可以尝试一下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 全局变量是用globle如:globle $fd;如果用session 来声明变量则在第一、二页的开头要有session_start();声明session 变量如:session_register(s_name);//注册变量session_register(s_password);$s_name=$name;//使用变量$s_password=$password; 如果不想很安全的话,就是用url简单,如果想安全的级别高一点,用session与cookie来实现 好像可以直接传,偶用的是4.0的版本例:<form …… action = "test1.php"> //post <input type = "text" name = "text1"></form>--------------------------------------------------test1.php<?php $text1 = $_POST['text1']; //得到$test1<form …… action = "test2.php">……</form>?>-----------------------------------------------------test2.php<?php $text1 = $_POST['text1']; //得到$test1?> 汗。写错,是这样的。test1.php<?php $textname = $_POST['textname']; if (!empty($textname)) { require('test2.php'); }?>---------------------------------test2.php<?php $textname = $_POST['textname']; echo $_POST['textname'];?> 我同意用SESSION的方法还是比较安全. 求批量导入图片去除外链方法 求如何终止ignore_user_abort() 想在站里加个会员系统www.webcf.cn,请问有高手没 新手请教个PHP对文件系统的操作问题。谢谢 $_post值传不过来? 数字分页??????急!! 为什么出错? 请问怎样让一个程序执行到某个地方暂停 关于图片从数据库中读出的问题 帮助小妹寻找斑竹goodname 2003 PHP 求图书管理系统相关论文及毕业设计
如:globle $fd;如果用session 来声明变量
则在第一、二页的开头要有session_start();
声明session 变量如:
session_register(s_name);//注册变量
session_register(s_password);
$s_name=$name;//使用变量
$s_password=$password;
例:
<form …… action = "test1.php"> //post
<input type = "text" name = "text1">
</form>
--------------------------------------------------
test1.php
<?php
$text1 = $_POST['text1']; //得到$test1
<form …… action = "test2.php">
……
</form>
?>
-----------------------------------------------------
test2.php
<?php
$text1 = $_POST['text1']; //得到$test1
?>
test1.php
<?php
$textname = $_POST['textname'];
if (!empty($textname))
{
require('test2.php');
}
?>
---------------------------------
test2.php
<?php
$textname = $_POST['textname'];
echo $_POST['textname'];
?>