I have a page
http://www.anywhere.com/contact.htm?locid=...scription=frontI would like to capture the parameters and add each to its own hidden textbox.
CODE
<head>
<meta http-equiv="Content-Language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>Contact Information</title>
<script type="text/javascript">
var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
var pos = parms[i].indexOf('=');
if (pos > 0) {
var key = parms[i].substring(0,pos);
var val = parms[i].substring(pos+1);
qsParm[key] = val;
}
}
}
qsParm['locid'] = null;
qsParm['unitid'] = null;
qsParm['description'] = null;
qs();
</script>
</head>
<body>
<form title="contact" method="POST" action="contacthandler.asp" target="_parent" xml:lang="en-us">
<table border="1" width="100%" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none">
<tr>
<td align="right" style="width: 209px; border-top-style: none; border-right-style: none; border-left-style: none; height: 28px; border-bottom-style: none; text-align: center;"><input type="hidden" name="locid" style="width: 95px" /></td>
<td align="left" style="width: 77px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; text-align: center;"><input type="hidden" name="description" style="width: 95px"/></td>
<td align="left" style="width: 162px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; text-align: center;"><input type="hidden" name="unitid" style="width: 95px"/></td>
</tr>
</table>
</form>
</body>
</html>