3

I am trying to pass the data through window.location, the data is available in del(id,img,album).

I want to send multiple values through window.location as

 window.location="save.php?type=deldownload&album="+album&id="+id; 

But this does not work, but this code below works.

function del(id,img,album){
    var where_to= confirm("Do you really want to delete "+img+" image");
    if (where_to== true)
    {
         window.location="save.php?type=deldownload&id="+id; 
    } 
    else
    {
         alert('Ok! You Can continue with this Album');
    }

}

Please tell what the real problem is.

1 Answer 1

6

You missing few quotes

window.location="save.php?type=deldownload&album="+album+"&id="+id; 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.