regular expression/general practice
hello to all,
I have a two different questions that i would greatly appreciate your assistance on...
I am trying to control a input type field via php using regular expression, but unfortunately i don't know where to start.
I want the field to contain a V(as the first character) and numbers for the remainder of the field. How do I utilize the regular expression or write the regular expression to accomplish that task?
eg. V12345, V45464, V94948
Moreoever, I've asked this particular question before and received a good answer, but and still unsure of practices. Would it be a good practice to adapt by seprating your sql statements and functions from your client side scripts and pages? What is the general practice in the industry for security reasons and/or performance reasons regarding sql scripts in php client side pages?
I hope that made sense, and I am looking forward to hearing back from everyone...
Dungey
|