lting
12-30-2003, 07:05 PM
i created a php with a javascript pop-up window function
the process of my page is..
when i click the "Calculate Button" a new window pop-up, the javascript will then pass the Value in my parent window to child window.
i pass the value into a hidden text box in the child window's form. so in the child window when i click calculate, it will shows me the results of calculation.
everthing works fine! untill i press the calculate button for second calculation purpose. this time errors occurs with
Warning: Division by zero in c:\program files\apache group\apache\htdocs\testing\calculate.php on line 55
.... the value that i pass from the parent window lost for the second calculation purpose.
so may i know how i can save the value passed from the parent window ( which is parent.php ) to the child window(calculate.php). so that i can use it for whenever i want.
this is part of my coding in childwindow(calculate.php)
<INPUT TYPE="hidden" NAME="txtsearch" value="">
<INPUT TYPE="submit" name="submitsearch" value="Calculate">
where the value passed from parent window will put into the hidden txtsearch, but it only allowed to be used for one time after that the hidden value become lost when i pressed the calculate button for second calculation process.
the process of my page is..
when i click the "Calculate Button" a new window pop-up, the javascript will then pass the Value in my parent window to child window.
i pass the value into a hidden text box in the child window's form. so in the child window when i click calculate, it will shows me the results of calculation.
everthing works fine! untill i press the calculate button for second calculation purpose. this time errors occurs with
Warning: Division by zero in c:\program files\apache group\apache\htdocs\testing\calculate.php on line 55
.... the value that i pass from the parent window lost for the second calculation purpose.
so may i know how i can save the value passed from the parent window ( which is parent.php ) to the child window(calculate.php). so that i can use it for whenever i want.
this is part of my coding in childwindow(calculate.php)
<INPUT TYPE="hidden" NAME="txtsearch" value="">
<INPUT TYPE="submit" name="submitsearch" value="Calculate">
where the value passed from parent window will put into the hidden txtsearch, but it only allowed to be used for one time after that the hidden value become lost when i pressed the calculate button for second calculation process.