Hi ,
I'm no programmer, so what if I don't want to see the undefined fields in this passing values script?
link is;http://javascript.internet.com/forms/passing-values.html
This is the returnscript on the next page.
<SCRIPT LANGUAGE="JavaScript"><!-- This script and many more are available free online at --><!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> --><!-- Begin
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();
// End --></script>