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
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
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
3 matches
Mail list logo