summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 37afc2daf..d250d76e8 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -40,10 +40,15 @@
*/
if ( ! function_exists('form_open'))
{
- function form_open($action = '', $attributes = = 'method="post"', $hidden = array())
+ function form_open($action = '', $attributes = '', $hidden = array())
{
$CI =& get_instance();
+ if ($attributes == '')
+ {
+ $attributes = 'method="post"';
+ }
+
$action = ( strpos($action, '://') === FALSE) ? $CI->config->site_url($action) : $action;
$form = '<form action="'.$action.'"';