Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing multiple uploadify buttons
    text
    copied!<p>I have a page that contains 4 uploadify button. When it comes to 4 uploadify buttons, I put 4 scripts like this :</p> <pre><code> $(function() { $('#file_upload').uploadify({ 'formData' : { 'PHPSESSID': '&lt;?=session_id()?&gt;', 'timestamp' : '&lt;?php echo $timestamp;?&gt;', 'token' : '&lt;?php echo md5('unique_salt' . $timestamp);?&gt;' }, 'swf' : 'uploadify.swf', 'uploader' : 'uploadify.php?id=&lt;? echo $resID; ?&gt;&amp;state=&lt;? echo strtolower($negeri); ?&gt;', 'onQueueComplete': function() { setTimeout(function(){location.reload(true);},100) } }); $('#file_upload1').uploadify({ 'formData' : { 'PHPSESSID': '&lt;?=session_id()?&gt;', 'timestamp' : '&lt;?php echo $timestamp;?&gt;', 'token' : '&lt;?php echo md5('unique_salt' . $timestamp);?&gt;' }, 'swf' : 'uploadify.swf', 'uploader' : 'uploadify1.php?id=&lt;? echo $resID; ?&gt;&amp;state=&lt;? echo strtolower($negeri); ?&gt;', 'onQueueComplete': function() { setTimeout(function(){location.reload(true);},100) } }); $('#file_upload2').uploadify({ 'formData' : { 'PHPSESSID': '&lt;?=session_id()?&gt;', 'timestamp' : '&lt;?php echo $timestamp;?&gt;', 'token' : '&lt;?php echo md5('unique_salt' . $timestamp);?&gt;' }, 'swf' : 'uploadify.swf', 'uploader' : 'uploadify2.php?id=&lt;? echo $resID; ?&gt;&amp;state=&lt;? echo strtolower($negeri); ?&gt;', 'onQueueComplete': function() { setTimeout(function(){location.reload(true);},100) } }); $('#file_upload3').uploadify({ 'formData' : { 'PHPSESSID': '&lt;?=session_id()?&gt;', 'timestamp' : '&lt;?php echo $timestamp;?&gt;', 'token' : '&lt;?php echo md5('unique_salt' . $timestamp);?&gt;' }, 'swf' : 'uploadify.swf', 'uploader' : 'uploadify3.php?id=&lt;? echo $resID; ?&gt;&amp;state=&lt;? echo strtolower($negeri); ?&gt;', 'onQueueComplete': function() { setTimeout(function(){location.reload(true);},100) } }); }); </code></pre> <p>The problem <strong>it destroys all my session</strong>.But when I put just one script. It doesn't destroys my session. </p> <p>Is there any way to solve this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload