Re: how to validate texbox which is not related to table's field

2009-04-16 Thread Mark (Germany)

if you want to validate by posting, it doesnt matter if those fields
are in the DB or not
just set up the rules and cake will validate those as well

if you want to validate them directly by JS, you have to validate it
manually


On 16 Apr., 15:56, vikas  wrote:
> Hello all..
>
> I have a task list page in which all task listed(simple index.ctp)..
>
> Now in that index.ctp i have set a two text box in which user can
> enter a startdate & enddate of project respectively. and according to
> that dates I show the projects.
>
> Now I want to validate user has enterd a valid date or not? so for
> that I have to use my own javascript validation or is there inbuilt
> facility in cakephp??
>
> Thanx in advance..
>
> vikas
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how to validate texbox which is not related to table's field

2009-04-16 Thread vikas

Hello all..

I have a task list page in which all task listed(simple index.ctp)..

Now in that index.ctp i have set a two text box in which user can
enter a startdate & enddate of project respectively. and according to
that dates I show the projects.

Now I want to validate user has enterd a valid date or not? so for
that I have to use my own javascript validation or is there inbuilt
facility in cakephp??

Thanx in advance..

vikas
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---