[PHP] forms addslashes ?

2003-06-19 Thread Mukta Telang
Hi, I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo input type=\text\ name=\title\; $title=addslashes($title); But the string that gets added has a lot of

Re: [PHP] forms addslashes ?

2003-06-19 Thread Lars Torben Wilson
On Thu, 2003-06-19 at 05:27, Mukta Telang wrote: Hi, I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo input type=\text\ name=\title\;

Re: [PHP] forms addslashes ?

2003-06-19 Thread Jason Wong
On Thursday 19 June 2003 20:27, Mukta Telang wrote: I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo input type=\text\ name=\title\;