php_guest Posted June 9, 2009 Share Posted June 9, 2009 I have one basic question about syntax. This is a function: function() { upload1 = new SWFUpload({ upload_url: "upload.php", //continue... I want to give for each time function is called, a different name to upload1 and upload.php, like the following, but it is incorrect syntax: var number=1 function(number) { upload+number = new SWFUpload({ upload_url: "upload+number+.php", //continue... So how would be correct to assing 1 to the name of upload* variable and to upload*.php? tnx Quote Link to comment Share on other sites More sharing options...
flyhoney Posted June 9, 2009 Share Posted June 9, 2009 var number=1 function(number) { upload+number = new SWFUpload({ upload_url: "upload" + number + ".php", Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.