[PHP] placing values in html teaxtarea
After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my calculations I my field called $test ends up containing This is a test. Here is what I tried: textarea name=zoutput rows=20 cols=70 wrap value=? echo $test; ? / /textarea I can add the $test to input like this but not a textarea. Name: input type=text name=zfname value=? echo $test; ?/ br Is this possible? Thanks, Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] placing values in html teaxtarea
Would you please turn off return receipt in your messages? Thanks! Travis Hull, Douglas D wrote: After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my calculations I my field called $test ends up containing This is a test. Here is what I tried: textarea name=zoutput rows=20 cols=70 wrap value=? echo $test; ? / /textarea I can add the $test to input like this but not a textarea. Name: input type=text name=zfname value=? echo $test; ?/ br Is this possible? Thanks, Doug -- Travis Low mailto:[EMAIL PROTECTED] http://www.dawnstar.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] placing values in html teaxtarea
On Monday 12 July 2004 23:09, Hull, Douglas D wrote: After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my calculations I my field called $test ends up containing This is a test. Here is what I tried: textarea name=zoutput rows=20 cols=70 wrap value=? echo $test; ? / /textarea I can add the $test to input like this but not a textarea. Name: input type=text name=zfname value=? echo $test; ?/ br Is this possible? Please refer to some decent HTML documentation on how the textarea tag works. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Engineering without management is art. -- Jeff Johnson */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] placing values in html teaxtarea
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 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; ?/ 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] placing values in html teaxtarea
On Mon, 12 Jul 2004 10:09:25 -0500, Hull, Douglas D [EMAIL PROTECTED] wrote: After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my calculations I my field called $test ends up containing This is a test. Here is what I tried: textarea name=zoutput rows=20 cols=70 wrap value=? echo $test; ? / /textarea I can add the $test to input like this but not a textarea.Name: input type=text name=zfname value=? echo $test; ?/ br Is this possible? (along the lines of Is your computer powered on?): Did you try: textarea ...echo $test;/textarea? In HTML 4/XHTML 1 and later (might be true for earlier versions, too), the tag textarea doesn't have a value attribute. Instead, the text between the textarea../textarea tags is passed to your script. Thanks, Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] placing values in html teaxtarea
textareas do not use the value attribute. instead, the value is placed between the textarea/textarea tags: textarea name=zoutput rows=20 cols=70 wrap /? echo $test; ?/textarea At 08:09 AM 7/12/2004, Hull, Douglas D wrote: After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my calculations I my field called $test ends up containing This is a test. Here is what I tried: textarea name=zoutput rows=20 cols=70 wrap value=? echo $test; ? / /textarea I can add the $test to input like this but not a textarea. Name: input type=text name=zfname value=? echo $test; ?/ br Is this possible? Thanks, Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] placing values in html teaxtarea
Keith Greene wrote: Here is what I tried: textarea name=zoutput rows=20 cols=70 wrap value=? echo $test; ? / /textarea textareas do not use the value attribute. instead, the value is placed between the textarea/textarea tags: textarea name=zoutput rows=20 cols=70 wrap /? echo $test; ?/textarea Ensure you run $test through htmlentities() or htmlspecialchars() before placing it in your textarea like this to prevent code injection. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php