03-11-2008, 03:17 PM
|
#6 (permalink)
|
|
The Visitor
Join Date: Mar 2008
Posts: 4
Thanks: 2
|
Thanks Alan, it help me a lot.
Quote:
Originally Posted by Alan @ CIT
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
|
|
|
|
|