Please Help
| From: | Safal Solutions | Date: | Wed, 30 Jul 2003 06:18:05 +0000 |
| Subject: | Please Help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157525@lists.php.net to get a copy of this message | ||
Hello friends,
I have two files
one is letter.php and another is simple.php
in simple.php
i assign a value to a php variable , after assigning, i call letter.php in
the same file.
what is my requirment
-------------------------------
that assigned value in simple.php to a variable should display in the
outcome of letter.php.
Tried code
--------------
letter.php
<html>
<body>
<?php
echo "$contact_person";
?>
</body>
</html>
simple.php
<?php
$fd=file("Letters/letter.php","r");
$message="
".$contact_person="Sudhakar"."";
foreach ($fd as $value)
{
$value= strip_tags($value);
$message.= "$value";
}
echo($message);
?>
getting output which is wrong
output
---------
Sudhakar contact_person; ?>
Output should be
Sudhkar
Instead of contact_person Sudhkar should display