hello..
this is as novice as novice can be.. ?
I’m testing some simple codes and still can’t get the results I want.
I made an html file with a submit button:
[B]<html>
<head>
</head>
<body>
<form action=”ReceivedInfo.htm” method=get name=form1>
<input type=”text” name=name>
<input type=”submit” value=”Submit” id=submit1 name=submit1></form>
</body>
</html>
and then I read in a book the source code in which to receive this file the data included in another html form (ReceivedInfo.htm)… I’ve only copied the code, so I’m not sure if I’ve missed anything..
[B]<html>
<head>
<SCRIPT LANGUAGE=”JavaScript”>
function obtainValuesPassed()
{
var infoPassed = location.search;
infoPassed = infoPassed.replace(/+
infoPassed = unescape(infoPassed);
infoPassed = infoPassed.replace(/?/,” “);
var dataPairArray = infoPassed.split(/&|=/);
var extractedData = new Array();
for (var arrayIndex = 0; arrayIndex < dataPairArray.length; arrayIndex++)
{
extractedData[eatPairArray[arrayIndex]] = dataPairArray[++arrayIndex]
}
return extractedData;
}
var valuesPassed = obtainValuesPassed();
document.write(“Name is” + valuesPassed[“name”] + “<BR>”);
</script>
</head>
<body>
</body>
</html>
The result is a blank page. Please help.