colombo colombo - 8 months ago 35
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;