Hi. I have a problem with forms (method=post) and the action attribute (the
same page that have the form).

Why if use:

'<form action="' . $this->getRequest()->getBaseUrl() . '" method="POST">'

don't receive my POST variables with:

$this->getRequest()->getParams(

in my action controller or my helper?


However, if use

'<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">'

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#a12177793
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to