Re: placing values in html teaxtarea
| From: | Tom Rogers | Date: | Mon, 12 Jul 2004 15:17:14 +0000 |
| Subject: | Re: placing values in html teaxtarea | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190246@lists.php.net to get a copy of this message | ||
Hi,
Tuesday, July 13, 2004, 1:09:25 AM, you wrote:
HDD> After doing calculations etc on my data I am wanting to
HDD> place it in a textarea form in html. I am having trouble getting
HDD> my data to show up in my texarea. For example, say after all my
HDD> calculations I my field called $test ends up containing "This is
HDD> a test". Here is what I tried:
HDD> <textarea name="zoutput" rows="20" cols="70" wrap
HDD> value="<?
HDD> echo $test; ?>" /> </textarea>
HDD> I can add the $test to input like this but not a textarea.
HDD> Name: <input type="text" name="zfname" value="<? echo $test;
HDD> ?>"/> <br>
HDD> Is this possible?
HDD> Thanks,
HDD> Doug
HDD> --
HDD> PHP General Mailing List (http://www.php.net/)
HDD> To unsubscribe, visit: http://www.php.net/unsub.php
the text has to go between the <textarea></textarea> like
<textarea name="zoutput" rows="20" cols="70" wrap><?echo
$test?></textarea>
--
regards,
Tom