将变量传输到2个文件 [英] transfer Variable to 2 files

查看:90
本文介绍了将变量传输到2个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我的问题是
我想将文本传输到许多文件"aa.php& bb.php"
同时将文本传输到2个文件
例如:

hi every one
my question is
I want transfer text to many files "aa.php & bb.php "
at same time the text transfer to 2 files
eg:

<form method="POST" action="aa.php ">
<input name= "ID" type="text">


我想将"ID"发送到aa.php和bb.php

但是我该怎么办呢?

感谢


I want send "ID" to aa.php and bb.php

but how I can do it?

thanks

推荐答案

例如,参见传递变量的不同方式页之间的数据". [ ^ ].


使用


_SESSION [''var_name''] ,然后完成了……您没有通过将该变量保存到不同的文件,但是您正在创建一个变量,该变量将存储在服务器端,并且可以从所有文件中访问...

无论如何,CPallini已为您提供了一个很好的资源来研究...阅读它,然后您将能够选择如何做...

我建议的方法也有...

HTH ...
_SESSION[''var_name''] and then you are done... you are not passing the variable to different files, but you are creating a variable that will be stored in the server side and that will be accessible from all files...

Anyway, CPallini has given you a good resource to look into... read it and then you will be able to choose how to do it...

The method I''m suggesting is also there...

HTH...


这篇关于将变量传输到2个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆