data validation problem with multiple parameters

2009-03-25 Thread dubiousandrew
I have an edit form that takes in two parameters, an id of the user and user password. It is designed for the first time log in so the user is forced to create a password after following a link (that contains the automatically generated password and their id). For example:

Re: data validation problem with multiple parameters

2009-03-25 Thread mscdex
On Mar 25, 3:41 pm, dubiousandrew dubiousand...@gmail.com wrote: If I enter an invalid password on the form, then it does validate it correctly and displays the error message but the new address becomes: example.com/user/resetPassword/45 and it truncates the password parameter and then it no

Re: data validation problem with multiple parameters

2009-03-25 Thread dubiousandrew
Just a guess, but are you passing the auto-generated password to the view when validation fails, so that it can be used in your form's action attribute when re-POSTing another attempt at a new password? I don't think so. I am not doing anything. I am new to cakePHP. How do I do that? here

Re: Data validation problem

2008-05-16 Thread grigri
$this-Post-create($this-data); if ($this-Post-validates()) { // Data is good } else { // Data contains errors } On May 15, 9:21 pm, Wojtek [EMAIL PROTECTED] wrote: I have a problem with validating data without saveing anything in database. For example this script work good if

Data validation problem

2008-05-15 Thread Wojtek
I have a problem with validating data without saveing anything in database. For example this script work good if ($this-Post-save($this-data)) { $this-flash('blabla.','/posts'); } but when I use some my function form is not validating if

Form Data Validation problem...

2008-01-30 Thread Pq2son2
Hi, First Thanks, I'm a newbaby andI read a lot of manuals and the API but I don't found the reason because the CakePHP (version 1.2.0.6311) doesn't validate any parameter. Here I write the simple exemple that I try for test the validation in this framework. Model: ?php class

Re: Form Data Validation problem...

2008-01-30 Thread Dardo Sordi Bogado
This: class UserAppModel extends AppModel{ should be: class UserModel extends AppModel{ On Jan 30, 2008 8:04 PM, Pq2son2 [EMAIL PROTECTED] wrote: Hi, First Thanks, I'm a newbaby andI read a lot of manuals and the API but I don't found the reason because the CakePHP (version

Re: Cake 1.2 Data Validation Problem

2007-08-01 Thread Pablo Viojo
Tryarray('rule' = array('alphaNumeric')) (note = instead of ,) -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/1/07, Feris Thia [EMAIL PROTECTED] wrote: Hi All, I've read about data validation in CakePHP 1.2 version and I change my model $validate var as below :

Cake 1.2 Data Validation Problem

2007-08-01 Thread Feris Thia
Hi All, I've read about data validation in CakePHP 1.2 version and I change my model $validate var as below : var $validate = array( 'username' = array('rule', array('alphaNumeric')), 'password' =

Re: Cake 1.2 Data Validation Problem

2007-08-01 Thread Feris Thia
On 8/1/07, Pablo Viojo [EMAIL PROTECTED] wrote: Tryarray('rule' = array('alphaNumeric')) (note = instead of ,) Ah... that fix it. What a miss :P Thanks Pablo ! -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net Regars, Feris http://www.phi-integration.com

Re: Data validation problem

2007-03-30 Thread christianandradet
this is the code: /***MODEL***/ class Note extends AppModel { var $name = 'Note'; var $validate = array( 'title' = VALID_NOT_EMPTY, 'body' = VALID_NOT_EMPTY, ); } /VIEW***/ h1Add Note/h1 form

Data validation problem

2007-03-29 Thread christianandradet
hi i am trying to do the validation that this page teaches: http://manual.cakephp.org/chapter/validation it works but the messages do not appear: ?php echo $html-tagErrorMsg('Post/title', 'Title is required.')? I do not know whatis the problem, maybe it's something that needs to be configured,

Re: Data validation problem

2007-03-29 Thread savagekabbage
Do you have your model set up correctly to handle data validation? On Mar 29, 12:49 pm, christianandradet [EMAIL PROTECTED] wrote: hi i am trying to do the validation that this page teaches:http://manual.cakephp.org/chapter/validation it works but the messages do not appear: ?php echo

Re: Data validation problem

2007-03-29 Thread Gonzalo Servat
On 3/29/07, christianandradet [EMAIL PROTECTED] wrote: hi i am trying to do the validation that this page teaches: http://manual.cakephp.org/chapter/validation it works but the messages do not appear: ?php echo $html-tagErrorMsg('Post/title', 'Title is required.')? I do not know whatis the