Test page works great. Basically have my first page as:
<html>
<head>
<title>Test In</title>
</head>
<body>
<FORM NAME=”testform” action=”testout.php”>
<INPUT TYPE=”text” NAME=”firstfield”>
<INPUT TYPE=”text” NAME=”secondfield”>
<INPUT TYPE=”submit”>
</FORM>
</body>
</html>
Second page (testout.php) like this:
<html>
<head>
<title>Test Out</title>
</head>
<body>
<FORM NAME=”testform”>
<INPUT TYPE=”text” NAME=”firstfield”>
<INPUT TYPE=”text” NAME=”secondfield”>
</FORM>
<SCRIPT LANGUAGE=”JavaScript”><!–
function getParm(string,parm) {
// returns value of parm from string
var startPos = string.indexOf(parm + “=”);
if (startPos > -1) {
startPos = startPos + parm.length + 1;
var endPos = string.indexOf(“&”,startPos);
if (endPos == -1)
endPos = string.length;
return unescape(string.substring(startPos,endPos));
}
return ”;
}
var passed = location.search.substring(1);
document.testform.firstfield.value = getParm(passed,’firstfield’);
document.testform.secondfield.value = getParm(passed,’secondfield’);
//–></SCRIPT>
</body>
</html>
Everything passes to the other page fine. But when I try and use it on my real form (the complete code too long to post), I get nothing. It follows to the correct next page, but dosent even attempt to pass the info.
The other pages are basically the same, but the filenames are obvioulsy different. I made sure that the fieldnames match eachother also, there are just alot more of them than what I have on the test form. I also made sure the form names match (I dont know if that matters or not).
Any suggestions to check things?