Re: Data validation doesn't work when on live server
(Sanitize::clean($this-data), array('validate' = false))) { $this-sendEmail(t...@digitil.co.uk,new FWA Account,New account created on FWA, name:.$this-data['Registration']['name']. email:.$this-data['Registration']['email']. tel:.$this- data['Registration']['tel']); //login $this-set('loggedin', $this-login(Sanitize::clean($this- data['Registration']['email']),Sanitize::clean($this- data['Registration']['password']))); $alldone = true; //$this-redirect('/my-account'); } else { $saved = false; $message = There was a problem when saving your details to the database, Please try again; } } else { $saved = false; $message = We already have your email address on our system, please login with your account or create a new one with a different email address; } } else { $validates = false; //pr($this-Registration-invalidFields()); $this-set('invalidFields',$this-Registration-invalidFields()); } } $this-set('validates', $validates); $this-set('saved', $saved); $this-set('alldone', $alldone); $this-set('message',$message); } } On Feb 18, 4:41 am, Jamal Aziz jamalsaepula...@gmail.com wrote: Can you post your model and your controller action? On Feb 18, 3:43 am, Atti moltoespeci...@googlemail.com wrote: Hi all, Just a quick question, I managed to get my data validation working perfectly on my local apache (XAMPP) web server, but as soon as I uploaded the site to the internet the validation flag seems to be always true, ie, there is not validation going on, so it seems. What settings on my live server would allow this to happen, the page im talking about is:http://www.findworkabroad.com/signup any help grately appreciated Thanks Atti Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Data validation doesn't work when on live server
I have instructed my host to upgrade the software on the server as I dont have control over it. On Feb 18, 10:36 am, jperras joel.per...@gmail.com wrote: 1) You're probably running CentOS on your production server. 2) CentOS ships with broken PCRE UTF-8 libraries. 3) A few of the validation rules in CakePHP use multibyte flags (e.g. for alphanumeric validation) Combine the above, and you get the problem you've described. Solutions: 1) Ditch CentOS. It's a piece of shit for PHP web development. It ships with PHP 5.1.6 (4 years old), an ancient version of Apache, OpenSSL 3.x (which is currently at a 5.x release), and more. Using CentOS is just going to cause pain and trouble. 2) Stick with the shit that is CentOS, and fix the RPMs:http://gaarai.com/2009/01/31/unicode-support-on-centos-52-with-php-an... 3) Write your own custom validation rules for any built-in rules that use multibyte flags in the regular expressions. There aren't really any other options. -jperras On Feb 17, 3:43 pm, Atti moltoespeci...@googlemail.com wrote: Hi all, Just a quick question, I managed to get my data validation working perfectly on my local apache (XAMPP) web server, but as soon as I uploaded the site to the internet the validation flag seems to be always true, ie, there is not validation going on, so it seems. What settings on my live server would allow this to happen, the page im talking about is:http://www.findworkabroad.com/signup any help grately appreciated Thanks Atti Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Data validation doesn't work when on live server
Hi all, Just a quick question, I managed to get my data validation working perfectly on my local apache (XAMPP) web server, but as soon as I uploaded the site to the internet the validation flag seems to be always true, ie, there is not validation going on, so it seems. What settings on my live server would allow this to happen, the page im talking about is: http://www.findworkabroad.com/signup any help grately appreciated Thanks Atti Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en