Re: [PHP] AJAX & PHP

2005-07-23 Thread John Browne
Hmm.. Works for me. Firefox 1.0.6 on gentoo. On 7/23/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > On Thu, 2005-07-21 at 08:23, Marco Tabini wrote: > > We had a webcast on PHP and Ajax a while back--the recordings are still > > available for free at http://blogs.phparch.com/mt/index.php?p=49.

Re: [PHP] OT ??: Form posting without leaving form

2005-06-13 Thread John Browne
Check out the "xmlhttp" object in Javascript: http://jibbering.com/2002/4/httprequest.html On 6/13/05, Kall, Bruce A. <[EMAIL PROTECTED]> wrote: > This is perhaps a javascript question > > Is there a way to post a form to a url without having a user submit from > the form? > > I have a php

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread John Browne
Right.. But the browser also should be ignoring the carriage returns as well, which makes me think the div is set to "white-space: pre;" or something. He said the text is being formatted in a div exactly how it is entered into the system. By default, a div does not render any carriage returns.

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread John Browne
Good point. Only problem is, if someone hit enter a-million times, you would end up with a-million spaces where the "\n" characters were. To take care of that repetition, maybe something like: while (strpos($textarea_text, "\n\n")) { . } would be one way you could do it. On 6/13/05

Re: [PHP] formatting paragraphs in to strings

2005-06-13 Thread John Browne
Use the PHP str_replace function before writing it to the DB. Replace all "\n" characters with an empty string "". http://us2.php.net/manual/en/function.str-replace.php On 6/13/05, Paul Nowosielski <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having a perplexing problem. I'm gather data through a

[PHP] XSLT processor and xsl:param - expected behavior?

2005-06-09 Thread John Browne
Question.. I'm using PHP 5.0.4 with the built-in libxslt-based xsl extension. I'm passing XSL parameters to the XSL processor like so: $xslt_proc->setParameter('', 'param_test', "some test value"); My question is, is it *required* to declare this parameter in the XSL stylesheet with: What I h