Closed jeebsion closed 9 years ago
The most common way is to use it in the onSubmit()
callback function:
onSubmit: function() {
var self = this;
self.setData({
someItem: 'value of first item',
anotherItem: 'value of second item'
});
});
You'll then be able to access the data on the server side as you normally would a file input. You mentioned PHP:
$someItem = $_REQUEST['someItem']; // 'value of first item'
$anotherItem = $_REQUEST['anotherItem']; // 'value of second item'
Everything went well as per example until I realize that I need to pass additional variable to upload.php. Any advice, please?