...

View Full Version : problem in jquery



osweb
03-21-2011, 10:26 PM
<script type="text/javascript">
var decr = $('#decription').val();

$(document).ready(function() {

$('#file_upload').uploadify({
'uploader' : 'uploadify.swf',
'script' : 'uploadify.php',
'cancelImg' : 'cancel.png',
'folder' : 'uploads/',
'scriptData' : {'decription': decr },
'sizeLimit' : 1000000,
'fileExt' : '*.JPG;*.GIF',
'fileDesc' : 'Files (.JPG, .GIF)',
'removeCompleted' : false,
'onProgress' : function(event,ID,fileObj,data) {
var bytes = Math.round(data.bytesLoaded / 1024);
$('#' + $(event.target).attr('id') + ID).find('.percentage').text(' - ' + bytes + 'KB Uploaded');
return false;
},
});


});

</script>
</head>

<body>
<style>.uploadifyProgress{display:none;}</style>
<input type="file" id="file_upload" name="file_upload" />
<input id="decription" name="decription"/>
<a href="javascript:$('#file_upload').uploadifyUpload();">Upload Files</a>
</body>

hi,
not send data form - input id="decription" - to mysql why??

Fou-Lu
03-21-2011, 10:42 PM
Not sure why this was posted in PHP forum.
Moving from PHP to Javascript frameworks.
Not sure whether its the lack of a form itself including an enctype or what.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum