2

this is my code:

<script type="text/javascript">
        $(function() {
            $('#file_upload').uploadify({
                'swf'      : '../js/uploadify/uploadify.swf',
                'uploader' : '../js/uploadify/uploadify.php',
                'height' : '60',
                'width' : '60',
                'folder' : '../uploads/',
                'muti' : true,
                'displayData': 'speed',
                'scriptData' : {'evento' : '<?php echo $galery['event'] ?>'},
            }); 
        });

I try to pass a value of a variable to the file uploadify.php where there will register these data in the database, but can not in any way ... I've tried looking at some papers but the result is the same ...

Cœur
  • 37,241
  • 25
  • 195
  • 267
Silvio Luis
  • 193
  • 1
  • 3
  • 11
  • If you're doing what I think you are (calling a PHP script from javascript), maybe you should look at [this](http://stackoverflow.com/questions/5306479/calling-php-scripts-from-javascript-without-leaving-current-page) question. – charmlessCoin Aug 18 '13 at 07:27
  • 2
    Try removing the trailing comma in "'scriptData' : {'evento' : ''}," . Some browsers, *cough*IE*cough* trip over things like that. – Jayawi Perera Aug 18 '13 at 07:27
  • @Jay http://trailingcomma.com/ ! – Ian Aug 18 '13 at 07:36
  • I tried passing a simple string to see if the error was with php, but still it does not pass "'scriptData' : {'evento' : 'string'},". also tried to remove the comma from the right but the result was the same ... I need help ... – Silvio Luis Aug 18 '13 at 19:23

1 Answers1

0

You can tray to create session_id() and pass to this value through by uploadify. Then call the session id from acton page. And match them.

Sinan Gül
  • 569
  • 7
  • 18