Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
form.php
Go to the documentation of this file.
1 <?php
11 if (isset($vars['name'])) {
12  $name = "name=\"{$vars['name']}\"";
13 } else {
14  $name = '';
15 }
16 
17 $body = $vars['body'];
18 $action = $vars['action'];
19 if (isset($vars['method'])) {
20  $method = $vars['method'];
21 } else {
22  $method = 'POST';
23 }
24 
25 $method = strtolower($method);
26 
27 ?>
28 <form <?php echo $name; ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>">
29 <?php echo $body; ?>
30 </form>
action($action, $forwarder="")
Perform an action.
Definition: actions.php:47
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
$method
Definition: form.php:25
$action
Definition: form.php:18
$body
Definition: form.php:31
$vars
Definition: form.php:23
elgg river item form