diff options
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/form_helper.php | 7 |
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.'"';
|