I have this script on my soon-to-be-up website that does display the values entered on a second page. But when it is displayed, all the spaces within the entered values are turned to pluses. I know this is normal, but is there something I can add to this script, or a different script I can use?
The Form tag on the first page :
<form name="form1" action="file:///P|/Desktop/Computer Applications/CAWT - Project 1 - TEC/printoutfinal.htm">
The script inside the head of the page displaying it :
[ignore]
<SCRIPT LANGUAGE="JavaScript">
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs.split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();
</script>
[/ignore]
And one of the script lines that displays the value :
[ignore]
<SCRIPT LANGUAGE="JavaScript">
Name = unescape(params["Name"]);
document.write(Name);
</script>
[/ignore]
If you have anything that I can do to this to make these darn pluses remain as spaces, please let me know.
My email is nokios@post.com
The Form tag on the first page :
<form name="form1" action="file:///P|/Desktop/Computer Applications/CAWT - Project 1 - TEC/printoutfinal.htm">
The script inside the head of the page displaying it :
[ignore]
<SCRIPT LANGUAGE="JavaScript">
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs.split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();
</script>
[/ignore]
And one of the script lines that displays the value :
[ignore]
<SCRIPT LANGUAGE="JavaScript">
Name = unescape(params["Name"]);
document.write(Name);
</script>
[/ignore]
If you have anything that I can do to this to make these darn pluses remain as spaces, please let me know.
My email is nokios@post.com