I think Asim has misunderstood...

You are trying to get the values posted with the form right?

In the form class you can use $this->getValues() or $this->getValue
("name") for example.

If you are (for some reason) not using the form class to process the
results, and you are trying to access the values in your action, then
you probably need to access the array of values that are posted with
the form.

$values = $this->getParameter("formName");
$name = $values["nom"];

If you are not sure what the name of the array is that is sent back,
check this:

var_dump($this->getParameterHolder()->getAll());

That will show you what was posted.

On Aug 11, 11:10 am, shakir33 <[email protected]> wrote:
> Hi everybody,
>
> i'm using symfony 1.2, and i have a problem with getting what the
> users wrote in the labels
>
> i try using
> $params = array(
>     'name'    => $request->getParameter('nom'),
>     'email'   => $request->getParameter('mail'),
>     'message' => $request->getParameter('msg'),
>   );
>
>         echo $request->getParameter('name');
>
> but i don't get the value of nom, i don't know what is the problem
> i have to get all the values of labels, and send it in mail
> it's very urgent so please somebady have a idea ??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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