Thank you.  This has been the biggest help so far.

But, if it's a user entered string is their anyway to
do this without having to parse the string and looking
for the # sign and then reconstructing the string. 
That would be very difficult to do.

I would appreciate any comments you might have.

Thanks again

John

--- Rebecca Donley <[EMAIL PROTECTED]> wrote:
> 
> John,
> I had a similar problem when passing # from one page
> to another as an html 
> anchor.  What worked for me was separating the # in
> quotes as follows:
> 
> echo "?id=" . $row[0] . "#" . strtolower($row[1]) .
> '">';
> 
> 
> When I did this I had no problem passing the entire
> string without the end 
> being interpreted as a comment.
> Rebecca
> 
> 
> >From: John Holcomb <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] Is there no one who can help me out
> there.
> >Date: Tue, 18 Sep 2001 16:29:21 -0700 (PDT)
> >
> >I have a text input field in my form.  I need the
> user
> >to be able to enter something like:  Hello, I need
> #
> >help. After which they click on a submit button.  
> The
> >succeeding page then takes this text and tries to
> >display it and tries to store "Hello, I need #
> help"
> >in a varchar field in a mysql table column.   The
> >mysql database is truncating the # sign and the
> text
> >succeeding the # sign.  Also, absolutly no text is
> >being diplayed on the succeeding web page.  I've
> tried
> >  using addslashes() and I was warned against using
> >htmlentities().  Also, I'm not sure if I'm dealing
> >with 2 issues: A mysql issue and a html issue. Or,
> am
> >I dealing with one issue: A mysql issue or an HTML
> >issue.
> >
> >I know think my problem is that when I pass text to
> >another page with the # sign, it's interpreting it
> as
> >a comment.  Is their any way to somehow escape the
> #
> >sign.
> >
> >
> >
> >
> >   Thank you,
> >
> >John
> >
> >__________________________________________________
> >Terrorist Attacks on U.S. - How can you help?
> >Donate cash, emergency relief information
>
>http://dailynews.yahoo.com/fc/US/Emergency_Information/
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
>
_________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> 


__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to