03-11-2008, 12:05 PM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
|
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
|
|
|