[nycphp-talk] <textarea><?=$variable2?></textarea>
tuon1 at netzero.net
tuon1 at netzero.net
Sun Nov 6 22:34:44 EST 2011
Hi, Guys!I just realized that after sent my post, I made a mistake in my code. I just woke up and rushed to the computer and start typing half-asleep and ran off to work in a matter of 3 minutes. So the code to populate in the boxes should have been: <?php$variable1 = 'John Doe';$variable2 = 'The sun is shining ..................blah blah blah';
echo "<input size=25 name=example1 value=<?=$variable1?></input>";
echo "<textarea name=example2 value=<?=$variable2?> rows=10 cols=50></textarea>";?> Some reason only example1 input box gets populated and exampl2 showed nothing.Any idea?ThanksPaul Tuon >Hi, Guys! >This maybe a simple solution that I overlooked. I can't seem to get my variables to populate in >text areas with <textarea> tags. Input boxes (<input>) work just fine, but for some reason ><textarea> boxes won't populate any content at all.
>Is there something else I have to do to get <textarea> to accept content or populate content?
>As far as I know, it shouldn't be any different than <input> boxes in term of populating >content, for example, here is the code to populate the two types of boxes:
><?php
>echo "<input><?=$variable1?></input>";
>echo "<textarea><?=$variable2?></textarea>";
>?>
>As I said, the input boxes work just fine, but the text area boxes didn't work and came up >blank text area with no content at all.
>Thanks in advance.
>Paul Tuon
____________________________________________________________
Penny Stock Jumping 3000%
Sign up to the #1 voted penny stock newsletter for free today!
http://thirdpartyoffers.netzero.net/TGL3231/4eb7521213c6b1524671st04duc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20111107/52d2cd78/attachment.html>
More information about the talk
mailing list