hi all,
i have a url string i pass through as follows:
http://www.mydomain.com/page.php?id=1&w ... &adr2=king road&city=london
the # in adr1 variable causes the page to stop printing adr2,city.
any variable after adr1 will not print on the page.
how can i stop this from happening?
[SOLVED] # anchor causes problems
Moderator: General Moderators
I have a javascript that creates the string to pass through. how can i do this in the javascript?
feyd | please use the forum's tags!
Code: Select all
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function passall () {
makestring = "a=a"
for (i=0;i<document.form1.elements.length;i++) {
if (document.form1.elementsїi].type == "radio" || document.form1.elementsїi].type == "checkbox") {
if (document.form1.elementsїi].checked == true) {
makestring = makestring + "&" + document.form1.elementsїi].name + "=" + document.form1.elementsїi].value
}
}
else
{
makestring = makestring + "&" + document.form1.elementsїi].name + "=" + document.form1.elementsїi].value
}
}
document.location.href = "principal_user_edit.php?stop=stop&" + makestring
}
//-->
</SCRIPT>feyd | please use the forum's tags!