View Single Post
Old 03-11-2008, 12:05 PM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

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
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
The Following User Says Thank You to Alan @ CIT For This Useful Post:
krum (03-11-2008)