RE: [PHP] addSlashes Question

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 3:27 pm, Jay Blanchard wrote: > [snip] > > $first = "'".addslashes($_POST['firstname'])."'"; > $last = "'".addslashes($_POST['lastname'])."'"; > $email = "'".addslashes($_POST['email'])."'"; > $address = "'".addslashes($_POST['address'])."'"; > $city

Re: [PHP] addSlashes Question

2007-08-01 Thread Jim Lucas
CK wrote: Hi, Engaged in "cleanup" project, attempting to understand the uncommented decisions of predecessors. Inserting the following contact form values into a DB: $first = "'".addslashes($_POST['firstname'])."'"; $last = "'".addslashes($_POST['lastname'])."'"; $email = "'"

Re: [PHP] addSlashes Question

2007-08-01 Thread Robert Cummings
On Wed, 2007-08-01 at 13:20 -0700, CK wrote: > Hi, > > Engaged in "cleanup" project, attempting to understand the > uncommented decisions of predecessors. Inserting the following > contact form values into a DB: > > > $first = "'".addslashes($_POST['firstname'])."'"; > $last = "'

RE: [PHP] addSlashes Question

2007-08-01 Thread Jay Blanchard
[snip] $first = "'".addslashes($_POST['firstname'])."'"; $last = "'".addslashes($_POST['lastname'])."'"; $email = "'".addslashes($_POST['email'])."'"; $address = "'".addslashes($_POST['address'])."'"; $city = "'".addslashes($_POST['city'])."'"; $state = "'".addslashes

Re: [PHP] addslashes Question

2001-03-21 Thread Hardy Merrill
Jeff, here's what I do: 1. set magic_quotes_gpc On in php.ini * this will automatically quote all GET, POST, and COOKIE variables - read up on magic_quotes_gpc. 2. at the top of each script, stripslashes all the COOKIE, GET, and POST variables, since they will have been

Re: [PHP] addslashes Question

2001-03-21 Thread Tobias Talltorp
This seems to be more of a HTML problem. Form fields simply can“t print out ". You need to change the " to " in order for it to appear. This can be done using the function htmlspecialchars(): http://www.php.net/manual/en/function.htmlspecialchars.php In your case: "> You can test these two thing