On Thu, 05 Jan 2006 13:01:07 -0800, B Squared <nu**@null.com> wrote:
I'm trying to pass a string from the current html page to one I'm
calling.
This is generally a bad idea. For one thing it's easily hackable by
users editing the URL in transit. There used to be a lovely bug on the
Bloomberg.com site (heavyweight financial news) where you could make
_their_ server generate a story with any title you wished, by passing it
in the URL. Imagine a day-traders' blog entry with a post that
mis-represented a story "MegaPharm announce new drug" with a title "FDA
announce enquiry into two-headed babies"
You don't give us enough to know just what or why you're doing, but this
is clearly a PHP problem rather than a HTML one. Making the string for
the href URL is easy (but remember to encode awkward characters such as
" < > & etc.) Using this string in the target page is almost as
simple, a matter of decoding the URL parameters that any PHP primer
should explain.