Re: [PHP3] How can I do ?
| From: | (Richard Lynch) | Date: | Wed, 07 Jun 2000 07:13:12 +0000 |
| Subject: | Re: [PHP3] How can I do ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1164@lists.php.net to get a copy of this message | ||
In article <200006011056.SAA22611@netra.nju.edu.cn>, hjz@aiake1.nju.edu.cn
(He Jiazhou) wrote:
> Hi,
>
> There are two php files A.php and B.php, "temp" is a array of A.php,
then I want to use the
> content of "temp" in file B.php. How can I do ?
>
> Do you have any good ideas ?
If I'm understanding the question...
<FORM ACTION=B.php METHOD=POST>
<?php
while (list($k, $v) = each($temp)){
echo "<INPUT TYPE=HIDDEN NAME=temp[$k] VALUE='", htmlEntities($v),
"'>\n";
}
?>
<INPUT TYPE=SUBMIT>
</FORM>
Or maybe you just want to do this in B.php:
$a = fopen("A.php", 'r');
while (!feof($a)){
$line = fgets($a, 1000000);
echo htmlEntities($line), "<BR>\n";
}
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)