Re: [PHP] storing and then displaying HTML for update
Ooh, top-posting and privately replying! You're going to jail, Rod! ;-P On Fri, Jul 25, 2008 at 10:05 AM, Rod Clay [EMAIL PROTECTED] wrote: Occasionally part of the HTML. Usually nothing. Right, but what I had hoped for was an sample of actual output, along with a sample of *expected* output. -- /Daniel P. Brown Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing and then displaying HTML for update
On Fri, Jul 25, 2008 at 10:27 AM, Daniel Brown [EMAIL PROTECTED] wrote: Ooh, top-posting and privately replying! You're going to jail, Rod! ;-P On Fri, Jul 25, 2008 at 10:05 AM, Rod Clay [EMAIL PROTECTED] wrote: Occasionally part of the HTML. Usually nothing. Right, but what I had hoped for was an sample of actual output, along with a sample of *expected* output. -- /Daniel P. Brown Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Stick the output into a div, and the code into a textarea to display the source -- Bastien Cat, the other other white meat
Re: [PHP] storing and then displaying HTML for update
Daniel Brown wrote: Ooh, top-posting and privately replying! You're going to jail, Rod! ;-P On Fri, Jul 25, 2008 at 10:05 AM, Rod Clay [EMAIL PROTECTED] wrote: Occasionally part of the HTML. Usually nothing. Right, but what I had hoped for was an sample of actual output, along with a sample of *expected* output. Oops, sorry, I can't get used to the bottom-posting convention after spending 20 years usually top-posting! :-[ Well, I believe I've found my problem, and, once again, I am embarrassed to say that it is a pretty simple and foolish error on my part. I was putting this HTML in a value= parameter in the textarea field, instead of just putting it between the textarea name=. and /textarea tags It's amazing how simple these problems are once you know the solution, and how difficult and exasperating they seem to be when you don't! Thanks to everyone who helped me wrestle with this. Your input is much appreciated, and always helpful, no matter what the solution turns out to be.
Re: [PHP] storing and then displaying HTML for update
On Jul 25, 2008, at 11:36 AM, Rod Clay wrote: Daniel Brown wrote: Ooh, top-posting and privately replying! You're going to jail, Rod! ;-P On Fri, Jul 25, 2008 at 10:05 AM, Rod Clay [EMAIL PROTECTED] wrote: Occasionally part of the HTML. Usually nothing. Right, but what I had hoped for was an sample of actual output, along with a sample of *expected* output. Oops, sorry, I can't get used to the bottom-posting convention after spending 20 years usually top-posting! :-[ Well, I believe I've found my problem, and, once again, I am embarrassed to say that it is a pretty simple and foolish error on my part. I was putting this HTML in a value= parameter in the textarea field, instead of just putting it between the textarea name=. and /textarea tags It's amazing how simple these problems are once you know the solution, and how difficult and exasperating they seem to be when you don't! Thanks to everyone who helped me wrestle with this. Your input is much appreciated, and always helpful, no matter what the solution turns out to be. I ran into something just like that recently... and completely agree with you! BTW if I'm reading your e-mail addy right, Go Blue! :P -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] storing and then displaying HTML for update
I'm writing a php application which includes accepting and storing HTML for routine display by the application. All of this seems to be working fine. However, I also want to display the raw HTML for administrators of the system to update as necessary. I just discovered that this does NOT seem to be working. When I attempt to put this raw HTML into a textarea field on my page, I get unpredictable results. There must be a way to do this, since I've seen this done in other php applications. Can someone tell me how to do this? Is there some way to do this other than to put all of this raw HTML into a textarea field, or is there some technique for getting it successfully into a textarea field? I'm stumped right now. Thanks for any help anyone can give me. Rod -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing and then displaying HTML for update
Rod Clay wrote: I'm writing a php application which includes accepting and storing HTML for routine display by the application. All of this seems to be working fine. However, I also want to display the raw HTML for administrators of the system to update as necessary. I just discovered that this does NOT seem to be working. When I attempt to put this raw HTML into a textarea field on my page, I get unpredictable results. It's probably not being escaped properly when it's being put in the textarea - which means a in the content will close the textarea and start it's own tags etc. Try: $textarea_content = htmlspecialchars($content, ENT_QUOTES); -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing and then displaying HTML for update
On Fri, Jul 25, 2008 at 12:31 AM, Rod Clay [EMAIL PROTECTED] wrote: However, I also want to display the raw HTML for administrators of the system to update as necessary. I just discovered that this does NOT seem to be working. When I attempt to put this raw HTML into a textarea field on my page, I get unpredictable results. What is being displayed in your textarea when you output the raw HTML? -- /Daniel P. Brown Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php