Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 506

Warning: Incorrect key file for table './miphpf_miphpfcom/watchdog.MYI'; try to repair it query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.', 2, '', 'http://www.miphpf.com/manual/submit_fields_plugin.html', '', '100.28.132.102', 1719129800) in /home/miphpf/domains/miphpf.com/public_html/includes/database.mysql.inc on line 121
Submit Fields Plugin | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.
Home

Submit Fields Plugin

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.

miSubmitFieldsPlugin class is derived from miControllerPlugin. It manages the uploaded files.

* Example use

<?php
// Prepare the submit fields array
// Uploaded files will be moved from the temporary path to path specified through 'namePrefixSave' and 'nameSuffix'
// 'fieldName' is the input field name
// 'namePrefixSave' this is the uploaded file prefix (including path)
// 'namePrefixWeb' this is the prefix used in the HTML code to access the image
// 'nameSuffix' this is the uploaded file suffix (including extenstion)
$submitFields = array(
    array(
       
'fieldName' => 'MenuItemImage',
       
'namePrefixSave' => '../../images/products/img_',
       
'namePrefixWeb' => '/images/products',
       
'nameSuffix' => '.jpg'
   
)
);

// Register the plugin with the data manager object
new miSubmitFieldsPlugin($dataManager, $submitFields);
?>