Hi,

You have to create an edit.yml ( edit is your form submit action )
like this:

methods:
  post:
    - "feedback{name}"
    - "feedback{email}"
    - "feedback{message}"


names:
  feedback{name}:
    required:     yes
    required_msg: Insert a title.
.....


Try this.. ;)
Regards.

Mauro Casula
symfony-framework.com



On Tue, Jun 3, 2008 at 8:39 AM, hudson <[EMAIL PROTECTED]> wrote:

>
> Hello!
>
> I hawe a form:
>
> [CODE]
> <form method="POST">
> <input type="text" name="feedback[name]" value="1">
> <input type="text" name="feedback[email]" value="2">
> <input type="text" name="feedback[message]" value="3">
> </form>
> [/CODE]
>
> When I submit this form - I'll get on the server-side an array:
>
> [CODE]
> $feedback = array (
>  "name"    => 1,
>  "email"   => 2,
>  "message" => 3
> );
> [/CODE]
>
> How can I validate this form?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to