>>>On Nov 6, 2011, at 6:19 PM, tu...@netzero.net wrote:
>>> <?php
>>>
>>> echo "<input><?=$variable1?></input>";
>>
>>This is actually incorrect. The value needs to go in the the value attribute
>>of the
>>input element. Try this:
>>echo '<input value="' . htmlspecialchars($variable1, ENT_QUOTES, 'UTF-8') .
>>'" />";
>> echo "<textarea><?=$variable2?></textarea>";
>>
>>Try this:
>>echo '<textarea>' . htmlspecialchars($variable2, ENT_QUOTES, 'UTF-8') .
>>'</textarea>';
Thanks to all of you who responded, I tried and it works.
Thanks again!
Paul
---------- Original Message ----------
From: talk-requ...@lists.nyphp.org
To: talk@lists.nyphp.org
Subject: talk Digest, Vol 61, Issue 2
Date: Mon, 07 Nov 2011 07:10:43 -0500
Send talk mailing list submissions to
talk@lists.nyphp.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.nyphp.org/mailman/listinfo/talk
or, via email, send a message with subject or body 'help' to
talk-requ...@lists.nyphp.org
You can reach the person managing the list at
talk-ow...@lists.nyphp.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of talk digest..."
Today's Topics:
1. Prefill <textarea><?=$variable?></textarea> (tu...@netzero.net)
2. Re: Prefill <textarea><?=$variable?></textarea> (Rob Marscher)
3. <textarea><?=$variable2?></textarea> (tu...@netzero.net)
4. Re: <textarea><?=$variable2?></textarea> (Rob Marscher)
5. Re: <textarea><?=$variable2?></textarea> (justin)
6. Re: <textarea><?=$variable2?></textarea> (David Krings)
7. Re: <textarea><?=$variable2?></textarea> (Donald Organ)
----------------------------------------------------------------------
Message: 1
Date: Sun, 6 Nov 2011 23:19:08 GMT
From: "tu...@netzero.net" <tu...@netzero.net>
To: talk@lists.nyphp.org
Subject: [nyphp-talk] Prefill <textarea><?=$variable?></textarea>
Message-ID: <20111106.171908.1493...@webmail53.dca.untd.com>
Content-Type: text/plain; charset="windows-1252"
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
____________________________________________________________
53 Year Old Mom Looks 33
The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
http://thirdpartyoffers.netzero.net/TGL3231/4eb71603739ca1512326st05duc
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.nyphp.org/pipermail/talk/attachments/20111106/4cba5587/attachment-0001.html>
------------------------------
Message: 2
Date: Sun, 6 Nov 2011 20:55:31 -0500
From: Rob Marscher <rmarsc...@beaffinitive.com>
To: NYPHP Talk <talk@lists.nyphp.org>
Subject: Re: [nyphp-talk] Prefill <textarea><?=$variable?></textarea>
Message-ID: <a9e818c3-39d7-4b44-9105-b866f2555...@beaffinitive.com>
Content-Type: text/plain; charset="windows-1252"
On Nov 6, 2011, at 6:19 PM, tu...@netzero.net wrote:
> <?php
>
> echo "<input><?=$variable1?></input>";
>
This is actually incorrect. The value needs to go in the the value attribute
of the input element. Try this:
echo '<input value="' . htmlspecialchars($variable1, ENT_QUOTES, 'UTF-8') . '"
/>";
> echo "<textarea><?=$variable2?></textarea>";
>
Try this:
echo '<textarea>' . htmlspecialchars($variable2, ENT_QUOTES, 'UTF-8') .
'</textarea>';
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.nyphp.org/pipermail/talk/attachments/20111106/77a56496/attachment-0001.html>
------------------------------
Message: 3
Date: Mon, 7 Nov 2011 03:34:44 GMT
From: "tu...@netzero.net" <tu...@netzero.net>
To: talk@lists.nyphp.org
Subject: [nyphp-talk] <textarea><?=$variable2?></textarea>
Message-ID: <20111106.213444.126...@webmail56.dca.untd.com>
Content-Type: text/plain; charset="windows-1252"
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-0001.html>
------------------------------
Message: 4
Date: Sun, 6 Nov 2011 22:38:42 -0500
From: Rob Marscher <rmarsc...@beaffinitive.com>
To: NYPHP Talk <talk@lists.nyphp.org>
Subject: Re: [nyphp-talk] <textarea><?=$variable2?></textarea>
Message-ID: <fdf72108-2d02-4250-9a94-35c8cd71f...@beaffinitive.com>
Content-Type: text/plain; charset="windows-1252"
On Nov 6, 2011, at 10:34 PM, tu...@netzero.net wrote:
> 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?
Content goes inside the textarea block element:
echo "<textarea name=example2 rows=10 cols=50><?=$variable2?></textarea>";
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.nyphp.org/pipermail/talk/attachments/20111106/5d8b024c/attachment-0001.html>
------------------------------
Message: 5
Date: Sun, 6 Nov 2011 21:55:36 -0800
From: justin <jus...@justinhileman.info>
To: NYPHP Talk <talk@lists.nyphp.org>
Subject: Re: [nyphp-talk] <textarea><?=$variable2?></textarea>
Message-ID:
<CA+3=dgE_FR1XW5etM7km2y15uke2Mc9at=4+yfxk77gnqem...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Sun, Nov 6, 2011 at 7:38 PM, Rob Marscher <rmarsc...@beaffinitive.com> wrote:
>
> Content goes inside the textarea block element:
> echo "<textarea name=example2 rows=10 cols=50><?=$variable2?></textarea>";
>
>
And you'll want to escape the value of $variable2 ... It gets really
awkward if $variable2 includes </textarea> :)
echo "<textarea name=example2 rows=10
cols=50><?=htmlentities($variable2)?></textarea>";
------------------------------
Message: 6
Date: Mon, 07 Nov 2011 07:07:19 -0500
From: David Krings <ram...@gmx.net>
To: NYPHP Talk <talk@lists.nyphp.org>
Subject: Re: [nyphp-talk] <textarea><?=$variable2?></textarea>
Message-ID: <4eb7c9f7.3030...@gmx.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 11/6/2011 10:34 PM, tu...@netzero.net wrote:
> echo "<textarea name=example2 value=<?=$variable2?> rows=10
> cols=50></textarea>";
> ?>
The textarea tag does not have a value argument. You just include the default
text within the tags.
David
------------------------------
Message: 7
Date: Mon, 7 Nov 2011 07:10:42 -0500
From: Donald Organ <dor...@donaldorgan.com>
To: NYPHP Talk <talk@lists.nyphp.org>
Subject: Re: [nyphp-talk] <textarea><?=$variable2?></textarea>
Message-ID:
<caoziobvj+kw_6c8pitj9vcxuzsxmurqndha4pp8kkghcdfm...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Your missing quotes around your values and what are you using a closing
input tag?
On Sunday, November 6, 2011, tu...@netzero.net <tu...@netzero.net> wrote:
> 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?
> Thanks
> Paul 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!
> AwesomePennyStocks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.nyphp.org/pipermail/talk/attachments/20111107/ff081fac/attachment.html>
------------------------------
_______________________________________________
talk mailing list
talk@lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
End of talk Digest, Vol 61, Issue 2
***********************************
____________________________________________________________
Groupon™ Official Site
1 ridiculously huge coupon a day. Get 50-90% off your city's best!
http://thirdpartyoffers.netzero.net/TGL3231/4eb8c35f235611592880st04duc
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/Show-Participation