first
This commit is contained in:
19
installer/helpers/MY_form_helper.php
Executable file
19
installer/helpers/MY_form_helper.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Set Value
|
||||
*
|
||||
* We have removed the part using form validation.
|
||||
*
|
||||
* @access public
|
||||
* @param string
|
||||
* @return mixed
|
||||
*/
|
||||
function set_value($field = '', $default = '')
|
||||
{
|
||||
if ( ! isset($_POST[$field]))
|
||||
{
|
||||
return $default;
|
||||
}
|
||||
return form_prep($_POST[$field], $field);
|
||||
}
|
||||
Reference in New Issue
Block a user