Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post problem in jquery

    <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??

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • Users who have thanked Fou-Lu for this post:

    osweb (03-21-2011)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •