i am trying to append more than 2 variables in URL using location.href in javascript. Here is the code:
location.href='Add_New_Project.php?project_name=' + project_name + '&cat=' + val + '&prj_desc=' + project_desc;
The page is suppose to refresh when the code executes, but it wouldn't. Whereas if i try it with only two variables minus these ('&prj_desc=' + project_desc), it actually reloads and give me the right answer:
location.href='Add_New_Project.php?project_name=' + project_name + '&cat=' + val;
What are my not doing right? Please i need urgent help.Thanks