RE: [PHP] How to get the content of a file into the value of a t
| From: | Gregor Maier | Date: | Thu, 23 Aug 2001 15:19:45 +0000 |
| Subject: | RE: [PHP] How to get the content of a file into the value of a t | ||
| References: | 1 | Groups: | php.db php.general php.windows |
| Request: | Send a blank email to php-db+get-11720@lists.php.net to get a copy of this message | ||
On 23-Aug-2001 Jack wrote:
> Dear all
> Actually i'm trying to get the content of a file, and make it as a default
> value of a input text column.
> Is there anyway could do it?
>
> Thx
> jack
> jack@nedcor.com
open the file an read it. save the contents to a string.
then use:
<input name="some_field" type="text" value="<?php echo($string);
?>" />
----------------------------------
E-Mail: Gregor Maier <gregor.maier@newlogic.com>
Date: 23-Aug-2001
Time: 17:16:44
----------------------------------