Hi all,
In advance, thanks for any help. I'm an absolute newbie to javascript so any help is much appreciated.
(see code below) I have two html pages, form values are entered into one & displayed on the other, however, the spaces between words are showing as a plus sign instead.
Any idea how to fix this so they are just spaces & not plus signs?
Thanks!!
and this is the code that "gets" the value (I think??)
In advance, thanks for any help. I'm an absolute newbie to javascript so any help is much appreciated.
(see code below) I have two html pages, form values are entered into one & displayed on the other, however, the spaces between words are showing as a plus sign instead.
Any idea how to fix this so they are just spaces & not plus signs?
Thanks!!
Code:
function callinput(key) { if(window.location.href.indexOf(key+'=')!=-1) { a=window.location.href.split("?")[1].split(key+"=")[1].split("&")[0]; <!--cleanup data--> a=unescape(a); a=a.replace(/\+/," "); document.write(a); } else { alert("Not all fields were filled. Please re-enter them."); history.go(-1); } } //-->
Code:
script language="javascript" type="text/javascript"> <!-- callinput("store") //--> </script>
Comment