Part way there:
try these:
<!-- generic form send textarea submission to next page querystringreader.html -->
<html>
<head>
</head>
<body>
<form method="get" action="querystringreader.html">
<textarea name="txtarea" maxlength=200 cols=40 row=6></textarea>
<input type="submit" value="GO">
<input type="reset" value="CLEAR">
</form>
</body
</html>
the next page:
<html>
<head>
<script>
var msg="";
var newmsg="";
var m=0;
function getQueryString(){
msg = window.location.search;
msg = msg.substring(1);
msg = msg.split("=");
msg = msg[1].split(/\+/g);
buildInsertStr();
document.writeln(unescape(newmsg));
}
function buildInsertStr(){
while ((newmsg+msg[m]).length<41){
newmsg=newmsg+msg[m]+" ";
m++;
}
return newmsg;
}
</script>
</head>
<body>
<script>
getQueryString();
</script>
</body>
</html>
The second page returns a string less than 40.
The next step is to 'clipped' off the parsed pieces out of the array msg (which is an array of 'words'), and then reprocess the array, etc. unitl we run out of words in the array from the submission in the textarea.
Works in both IE7 and FF3.04
Your turn!