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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to