April 2nd, 2001, 07:13 AM
My question is this
What I would like is to call the php script by the press of the “draw” button if the input validation is ok. All I’m missing is calling the php script with the parameters from the form and display it in the right frame.
Something like this:
(“display graphics in right frame based on parameters P1,P2….Pn”)
April 2nd, 2001, 01:55 PM
My suggestion would be this. Put a form in the right hand frame. This should be identical the the input form in the left hand frame but make each input of type Hidden.
<form name="form2" action="yourphpscript.php">
<INPUT TYPE=HIDDEN NAME="H1">
<INPUT TYPE=HIDDEN NAME="H2">
<INPUT TYPE=HIDDEN NAME="H3">
In the left-hand frame after your validation script add code like this to fill each of the hidden inputs in the right-hand frame with the corresponding values from the left.
If the left hand form is form1 :
this copies all your values from the left hand frame form to the right hand frame form. When you have done this submit the form2.
This will send your parameter to your php script and load it into the right-hand frame.
April 2nd, 2001, 03:34 PM
Thanks a lot John!
That really helped me, i was totally stuck