On Wed, 19 Sep 2001 08:59, John Holcomb wrote:
> 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.
>
Works OK for me in an INPUT TYPE=TEXT. Perhaps a bit of your code and the
table structure might help?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Sorry, I don't date outside my species.
--
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]