hello, i am trying to pass to another page all the values of a form
page1 contains the form and calls page2 to display the client's choices.
i need to pass somthing like: page2.cfm?var1=#var1#&var2=#var2#&var3=#var3#
from page1
<INPUT TYPE=BUTTON name="Preview" VALUE="Preview" onclick="WinOpen('PreviewRequest.cfm','700','300')">
<script language="javascript">
function WinOpen(xurl,x,y) {
var options = "toolbar=no,scrollbars=yes,resizable=yes,width=" + x + ",height=" + y;
var tempVar = "";
var tempArray = new array[3];
for (i = 0; i < 3; i++)
{tempArray= "var" + ;}
//for (i = 1; i < document.form.length; i++)
for (i = 1; i < 3; i++)
{ tempVar += "&" + tempArray + "=" + "#" + this.form.elements.value + "#";}
thisurl =xurl + "?" + tempArray[0] + "=" + "#" + this.form.elements[0].value + "#" + tempVar;
msgWindow=window.open(thisurl,"WinOpen",options);
}
requestform.cfm
display the variables
page1 contains the form and calls page2 to display the client's choices.
i need to pass somthing like: page2.cfm?var1=#var1#&var2=#var2#&var3=#var3#
from page1
<INPUT TYPE=BUTTON name="Preview" VALUE="Preview" onclick="WinOpen('PreviewRequest.cfm','700','300')">
<script language="javascript">
function WinOpen(xurl,x,y) {
var options = "toolbar=no,scrollbars=yes,resizable=yes,width=" + x + ",height=" + y;
var tempVar = "";
var tempArray = new array[3];
for (i = 0; i < 3; i++)
{tempArray= "var" + ;}
//for (i = 1; i < document.form.length; i++)
for (i = 1; i < 3; i++)
{ tempVar += "&" + tempArray + "=" + "#" + this.form.elements.value + "#";}
thisurl =xurl + "?" + tempArray[0] + "=" + "#" + this.form.elements[0].value + "#" + tempVar;
msgWindow=window.open(thisurl,"WinOpen",options);
}
requestform.cfm
display the variables