I would suggest using the url helper
massivo wrote:
>
> Hi. I have a problem with forms (method=post) and the action attribute
> (the same page that have the form).
>
> Why if use:
>
> ''
>
> don't receive my POST variables with:
>
> $this->getRequest()->getParams(
>
> in my action controller or my helper?
>
>
> However, if use
>
> ''
>
> or send with method="GET", everything goes well.
>
> I don't like to use $_SERVER['PHP_SELF'], because, if my uri is
> www.mydomain.com, when press the "send" button, it changes to
> www.mydomain.com/index.php (for example).
>
> How I would have to specify the action property in the form to receive it
> in the same page with post? I think that's a newbie question, I know...
> Thanks for help.
>
--
View this message in context:
http://www.nabble.com/forms-and-getBaseUrl%28%29-tf4278416s16154.html#a12211053
Sent from the Zend Framework mailing list archive at Nabble.com.