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 Link to comment https://forums.phpfreaks.com/topic/161481-basic-jquery-question/ 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", Link to comment https://forums.phpfreaks.com/topic/161481-basic-jquery-question/#findComment-852426 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.