Received: from glacier.binc.net (glacier.binc.net [205.173.176.10]) by hub.org (8.9.1/8.9.1) with ESMTP id JAA27468 for ; Mon, 23 Nov 1998 09:45:09 -0500 (EST) (envelope-from gfccall@mailbag.com) Received: from kpw (msn-1-33.x2.binc.net [198.70.31.33]) by glacier.binc.net (8.8.8/8.8.6) with ESMTP id IAA13343 for ; Mon, 23 Nov 1998 08:45:08 -0600 Reply-To: From: "Ken Wills" To: Subject: RE: your mail (Should have been problems with ') Date: Mon, 23 Nov 1998 08:45:32 -0600 Message-ID: <000601be16ef$eccb64e0$211f46c6@kpw.gfc.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal Firstly, thanks to everone who replied so fast!! > I have an annoying problem, that I just haven't been able to get around yet. When I parse the > input from a form and go to insert it eveything works fine as long as the user doesn't use > the ' character in the input. I've tried using qw{} and qq{}, which either don't interpolate >> or give me errors. Anyone have any suggestions? Postgres 6.4, Apache 1.3, mod_perl 1.16. >> The insert statement is below. >escape your imput strings first...something like: a number of people suggested something like: >$phone_number =~ s/'/\\'/g; Ok, I tried this - it does what it looks like is supposed to. If I enter: John's shoes, I get John\'s shoes. Unfortunatly I still get an error. If i enter it as John's shoes' ,I dont get an error. Seems like it only likes them in pairs. The funny thing is if I supply them in pairs, it inserts the whole string, I'd have thought that it would parse them or something, and only insert the values between the '. Ken