colombo colombo - 1 year ago 87
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 Source

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

location.href = "freecreate?fname="+fname+"&Mnumber="+Mnumber+"&sitename="+sitename;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download