Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Inserting into SQL

by beebware (Pilgrim)
on Feb 13, 2002 at 17:13 UTC ( [id://145209]=note: print w/replies, xml ) Need Help??


in reply to Inserting into SQL

Even though you are using placeholders, it's still a good idea to use a regexp to remove anything you don't want.
$var1=~s/[^A-z0-9, \.]//g;
works for me, but a) the little regexp can probably be better written and b) only allows set characters (upper and lower case letters, numbers, commas, spaces and full stops). Just an added layer of security.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://145209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-20 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found