View Single Post
Old 03-11-2008, 03:17 PM   #6 (permalink)
krum
The Visitor
 
Join Date: Mar 2008
Posts: 4
Thanks: 2
krum is on a distinguished road
Default

Thanks Alan, it help me a lot.

Quote:
Originally Posted by Alan @ CIT View Post
Hi Krum,

Here is a small example:

PHP Code:
<?php
class IndexController extends Zend_Controller_Action
{
    public function 
indexAction()
    {
        
// Our post array: ['name'] => 'Alan', ['country'] => 'UK'
        
        // Check for a POST request
        
if ($this->_request->isPost())
        {
            
// Get the 'name' and 'country' values from the $_POST array
            
$name $this->_request->getPost('name');
            
$country $this->_request->getPost('country');
            
            echo 
'Hello ' $name ' from ' $country '!';            
        }

    }
}
Edit: (and Welcome to TalkPHP )

Alan
krum is offline  
Reply With Quote