Re: [PHP] Re: form validation

2012-12-20 Thread Jim Giner
On 12/20/2012 10:36 AM, Daniel Brown wrote: On Thu, Dec 20, 2012 at 10:34 AM, Jim Giner wrote: If you are using mysql for a db, then you should already be using mysql_real_escape_string in place of addslashes. Actually, you should start moving toward MySQLi, as mysql_*() is deprecated.

Re: [PHP] Re: form validation

2012-12-20 Thread Jonathan Sundquist
On Thu, Dec 20, 2012 at 9:34 AM, Jim Giner wrote: > If you are using mysql for a db, then you should already be using > mysql_real_escape_string in place of addslashes. You should not be using mysql_real_escape_string going forward as it will be deprecated in php 5.5.0. http://php.net/manual/en/

Re: [PHP] Re: form validation

2012-12-20 Thread Daniel Brown
On Thu, Dec 20, 2012 at 10:34 AM, Jim Giner wrote: > > If you are using > mysql for a db, then you should already be using mysql_real_escape_string in > place of addslashes. Actually, you should start moving toward MySQLi, as mysql_*() is deprecated. -- Network Infrastructure Manager http:

[PHP] Re: form validation

2012-12-20 Thread Jim Giner
On 12/20/2012 10:27 AM, David Mehler wrote: Hello, I just read the Php5 changelog. Legacy features specifically magic quotes were removed, does that mean that any system running php 5.4 or newer does not need to use either addslashes() or stripslashes() when dealing with form input? Thanks. Dav

[PHP] Re: Form Validation filter - Regex Q

2009-11-12 Thread Al
Haig Davis wrote: Morning All, I've been figthing with this little problem for two days now, so far no luck with google and am beginning to question my own sanity. I have a application that has over one hundred forms some quite lengthy so what I'm trying to achieve rather than writing a bunc

[PHP] Re: Form Validation filter - Regex Q

2009-11-12 Thread Nisse Engström
On Tue, 10 Nov 2009 09:34:52 -0800, Haig Davis wrote: > foreach($_POST as $keyTemp => $valueTemp){ > $key = mysqlclean($keyTemp); > $value = mysqlclean($valueTemp); Mysql and form validation are totally unrelated. In my mind, this seems spectacularly misguided. >

[PHP] Re: Form Validation filter - Regex Q

2009-11-11 Thread Manuel Lemos
Hello, on 11/10/2009 03:34 PM Haig Davis said the following: > I've been figthing with this little problem for two days now, so far no luck > with google and am beginning to question my own sanity. > > I have a application that has over one hundred forms some quite lengthy so > what I'm trying to

[PHP] Re: Form Validation filter - Regex Q

2009-11-10 Thread Nathan Rixham
Haig Davis wrote: > alone work fine as does the foreach loop the only issue I have is the IF > statement comparing $key to expected varieable names. > > if($key != ("$customerServiceEmail") || ("$billingEmail") || multiple points here.. 1: is the key name held in a php variable calle

[PHP] Re: Form Validation filter - Regex Q

2009-11-10 Thread Al
Haig Davis wrote: Morning All, I've been figthing with this little problem for two days now, so far no luck with google and am beginning to question my own sanity. I have a application that has over one hundred forms some quite lengthy so what I'm trying to achieve rather than writing a bunc

Re: [PHP] Re: Form Validation

2009-08-12 Thread Ralph Deffke
> Sent: Wednesday, August 12, 2009 12:29 PM > To: php-general@lists.php.net > Subject: [PHP] Re: Form Validation > > this is a PHP mailing list, may be u ask this on a js mailinglist > > ralph_def...@yahoo.de > > > ""Micheleh Davis"" wrote in message

RE: [PHP] Re: Form Validation

2009-08-12 Thread Micheleh Davis
Yep, I'm sorry, sent to the wrong one. Thanks all! -Original Message- From: Ralph Deffke [mailto:ralph_def...@yahoo.de] Sent: Wednesday, August 12, 2009 12:29 PM To: php-general@lists.php.net Subject: [PHP] Re: Form Validation this is a PHP mailing list, may be u ask this on

[PHP] Re: Form Validation

2009-08-12 Thread Ralph Deffke
this is a PHP mailing list, may be u ask this on a js mailinglist ralph_def...@yahoo.de ""Micheleh Davis"" wrote in message news:002901ca1b68$fc6b0020$f54100...@com... > Please help. My form validation worked fine until I added the terms check > at the bottom. Any ideas? > > > > //form valida

Re: [PHP] Re: Form Validation Issues

2007-05-24 Thread Tijnema
On 5/23/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Thursday 24 May 2007 00:51, Greg Donald wrote: > As I watch PHP de-evolve into Java, I find myself wanting something > lighter weight and with a smaller syntax. PHP has long since spawned into something uncontrollable. Compare the numbe

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Crayon Shin Chan
On Thursday 24 May 2007 00:51, Greg Donald wrote: > As I watch PHP de-evolve into Java, I find myself wanting something > lighter weight and with a smaller syntax. PHP has long since spawned into something uncontrollable. Compare the number of functions (and its aliases) to eg Ruby. The string

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: Robert Cummings: "if every problem can be described as a nail, then all you need is a hammer." Don't you ever get the urge to swing a different hammer? I sure do. As I watch PHP de-evolve into Java, I find myself wanting somethi

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
Also, Indiana and Connecticut were misspelled. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: "If the only tool you have is a hammer, you tend to see every problem as a nail." $$

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 11:16 -0500, Jared Farrish wrote: > > Abraham Maslow: "If the only tool you have is a hammer, you tend to see > every problem as a nail." $$ Robert Cummings: "if every problem can be described as a nail, then all you need is a hammer." Cheers, Rob. -- .---

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
Having a giant conditional statement such as the one you have posted is a real problem for many different reasons. Below is a simple states class that allows you to test for a state using a couple of different checks (such as making both comparables lower or upper case). One major issue with the c

[PHP] Re: form validation

2007-04-07 Thread Haydar TUNA
Hello, You can use javascript and Ajax together. If you use the ajax, you can validate your data with PHP code. Please visit the web site below. You will find information about PHP and Ajax::) http://www.w3schools.com/php/default.asp -- Republic Of Turkey - Ministry of National Edu

[PHP] Re: Form Validation

2004-10-13 Thread Manuel Lemos
Hello, On 10/13/2004 03:03 PM, Ou Huang wrote: I am currently working on a newsletter mailing list project and developed a form in php. I would like to validate before it is submitted. What would be the best way to validate a form? Write your own routines or using a form validator. I just started l

[PHP] Re: Form validation: client- or server-side?

2004-01-09 Thread Matt Grimm
Thanks for the great input guys. Sounds like I'm using a sound method now with full server-side validation. Perhaps to make the most user- and server-friendly forms, one could use JavaScript as a guide to the user, alerting them to erroneous input and suggesting alternatives rather than being rel

[PHP] Re: Form validation: client- or server-side?

2004-01-09 Thread Manuel Lemos
Hello, On 01/09/2004 04:07 PM, Matt Grimm wrote: Is there a distinct advantage to doing form validation / error checking on the server side using PHP? That's how I've always done it because I know PHP better than JavaScript, but wouldn't it make sense to validate as much of your form as possible

[PHP] Re: Form validation

2002-04-25 Thread Manuel Lemos
Hello, Tarjei Huse wrote: > Hi, > > I need a function or class to validate a form with a cuple of text areas > that are alloed to contain a few html tags ( etc) but not all, > and I need a script to validate the input from the fields and stop the > html elements that are not allowed. > > Does a

[PHP] Re: Form Validation class

2002-01-03 Thread Manuel Lemos
Hello, Daniel Harik wrote: > > Hello guys, > > at moment i'm reading "Hack Proofing your web apps" book, but it makes > me scared, i have seen a class from newbienetwork.net(can't find it > now), that validates > user input, things like telephone number, state, country , email, and > also can c

Re: [PHP] Re: Form Validation class

2002-01-03 Thread Daniel Harik
Hello Chris, Thursday, January 03, 2002, 10:41:34 AM, you wrote: CL> Ive seen em on zend.com, I wrote my own. I would recommend you take a look CL> at the ones on zend.com and modify it to taste. CL> -- CL> Chris Lee CL> [EMAIL PROTECTED] CL> "Daniel Harik" <[EMAIL PROTECTED]> wrote in m

[PHP] Re: Form Validation class

2002-01-03 Thread Chris Lee
Ive seen em on zend.com, I wrote my own. I would recommend you take a look at the ones on zend.com and modify it to taste. -- Chris Lee [EMAIL PROTECTED] "Daniel Harik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello guys, > > at moment i'm reading