colombo colombo - 5 months ago 17
Javascript Question

How can i pass multiple parameters in location.href in php?

example (this is not working)

location.href = 'freecreate?fname=+fname+"&Mnumber="+Mnumber+"&sitename="+sitename';

Answer

Add double quotes(") after fname= , Use this:

location.href = "freecreate?fname="+fname+"&Mnumber="+Mnumber+"&sitename="+sitename;