Thanks for ur suggestions
sundar
--~--~-~--~~~---~--~~
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
the missing all fields will shown error message..but no one
displayed.
I don't understand, can you express that differently?
On 12 Nov 2008, at 16:24, sun wrote:
Thanks for consider my request.
I am asking abt how to validate the empty form fields and upload
file filed. ? consider
Thanks for consider my request.
I am asking abt how to validate the empty form fields and upload
file filed. ? consider three text fields and one upload file field if
i submit the submit button directly, with out any values entered, the
missing all fields will shown error message..but no
hello David
can u give some related ideas how to solve that problem any other
validation function will be add in controller section?
by
sundar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
sorry
I hope u understand my problem .already i have sent my test model to
u. u know my form fields
If submit the submit button the empty fields will shown error
message, but not shown in my program
so i am asking that only how to solve it?
with regards
sundar
Do I understand you correctly:
You have set validation rules in the model.
You have a form in your view but your view does not show the errors
for each field in your form.
First, add some error texts to your model. For example:
'mark1'=array(
'rule'=VALID_NOT_EMPTY,
'message'='Field
How to validate the empty fileds in cakephp ? when i dont give any
values to any fields in the form
If I click the submit button.. error message will be displayed under
the missing all fields..
Tell some idea to do that
by
sun
--~--~-~--~~~---~--~~
You
I don't understand what exactly you mean, but you may wanna look into
allowEmpty or notEmpty:
http://book.cakephp.org/view/130/allowEmpty
http://book.cakephp.org/view/740/notEmpty
On 12 Nov 2008, at 14:58, sun wrote:
How to validate the empty fileds in cakephp ? when i dont give any
values
Yes allowEmpty or notEmpty as well as you can set minLength or a
between validation.
On Nov 11, 10:17 pm, David C. Zentgraf [EMAIL PROTECTED] wrote:
I don't understand what exactly you mean, but you may wanna look into
allowEmpty or
Hi Sun,
Please send your replies to the list.
I think you need to read through the book again to understand how to
properly use validation rules.
http://book.cakephp.org/view/127/One-Rule-Per-Field
Chrs,
Dav
On 12 Nov 2008, at 16:42, sun wrote:
Thanks for consider my request,
I am
10 matches
Mail list logo