I need to submit a form to a frameset which contains 2 PHP files. Both PHP files need the form's data. The submited data is an array (arrayX) which contains an unknown amount of strings.
Does anybody have an idea how to do that ?
Any help is appreciated.
Thanks a lot !
Why don't you "require" or "include" the second frame into the first if the submit button was pushed.
June 10th, 2000, 04:22 AM
I don't think that I get it. The problem is, I have to submit my form to frame_file.php which basically looks like
<frame name="frame1" src="file1.php" ...>
<frame name"frame2" src="file2.php" ...>
I submit my form to "frame_file.php" and need to process the submitted data in both "file1.php" and "file2.php". How could your solution help ?
June 10th, 2000, 05:48 AM
i think one way to do this is that, just pass these information with an array variable and then process those information in file1.php and file2.php
Give a try like following..
<frame name="frame1" src="file1.php?variable=<?echo $values?>" ...>
<frame name"frame2" src="file2.php?variable=<?echo $values?>" ...>
You can try some other logic also with exec() function to process file1.php and file2.php from frame_file.php..
"The fear of the LORD is the beginning of knowledge..."
[This message has been edited by Shiju Rajan (edited June 10, 2000).]
June 10th, 2000, 08:40 AM
you gave me the right tip, however I couldn't do it exactly as you proposed.
Doing it like ...?result=<? echo $result;?>... gave me the word "Array" as value for result[i].
So, I decided to process the submitted array in the frame file already and passed on a string with the comma separated values to the two files.
That worked, so my problem seems to be solved.
Thanks a lot !