Re: [PHP] An "escape special characters" problem

2003-02-15 Thread Jason Wong
On Sunday 16 February 2003 02:58, Robert E. Harvey, M.D. wrote: > echo "$algen\n"; > The problem arises when one of the strings from the table algen has an > apostrophe in it such as "Queen Anne's Lace" or "Lamb's Quarters". It > displays properly in the form. What is passed to $HTTP_POST

Re: [PHP] An "escape special characters" problem

2003-02-15 Thread Robert E. Harvey, M.D.
Jason Sheets wrote: You're problem is that you are enclosing your value for your tags with single quotes ('), when you fetch the value from the database the single quote in 's ends the value='' assignment in your HTML. You can use echo "$algen"; which will solve your single quote problem. You

Re: [PHP] An "escape special characters" problem

2003-02-15 Thread Jason Sheets
You're problem is that you are enclosing your value for your $algen"; which will solve your single quote problem. You could also addslashes on your value and then stripslashes when you want to operate on it, example '' . $algen . '">'; Jason On Sat, 2003-02-15 at 11:58, Robert E. Harvey, M.D. wro

[PHP] An "escape special characters" problem

2003-02-15 Thread Robert E. Harvey, M.D.
Hi folks, I am trying to transfer data from a select list and am having problems with special characters stopping the transfer. The data is presented in a form as follows: $query = "SELECT algen FROM allist WHERE altyp = 'W' ORDER BY algen"; $result_1 = mysql_query($query) or die ("Coul