[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-09 Thread ceo
> Being JSON immediately parsable by both Javascript and PHP it is > possible to exploit it to keep the regular expressions for the input > fields in a single place, and avoid mantaining them synched between the > Js and PHP scripts! Yes, but... The Regex engines are not the same, so you

[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-09 Thread LucaP
Being JSON immediately parsable by both Javascript and PHP it is possible to exploit it to keep the regular expressions for the input fields in a single place, and avoid mantaining them synched between the Js and PHP scripts! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Ross McKay
On Fri, 5 Dec 2008 12:28:08 -0600, Terion Miller wrote: >I have a huge form to validate and wonder which is better javascript >validation or php, the page is a php page, I actually put js validation on >it but then it stopped working (stopped inserting into the db) not sure if >that had anything t