Jump to content

basic jquery question


php_guest

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.