#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    11
    Rep Power
    0
    Hi everybody,

    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 !

    Andreas

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    63
    Rep Power
    15
    Why don't you "require" or "include" the second frame into the first if the submit button was pushed.

    if ($submit_button)
    {
    require("frame2.php2");
    }
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    11
    Rep Power
    0
    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
    <frameset>
    <frame name="frame1" src="file1.php" ...>
    <frame name"frame2" src="file2.php" ...>
    </frameset>

    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 ?

    Thanks !

    Andreas
  6. #4
  7. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    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..

    <frameset>
    <frame name="frame1" src="file1.php?variable[]=<?echo $values?>" ...>
    <frame name"frame2" src="file2.php?variable[]=<?echo $values?>" ...>
    </frameset>

    or

    You can try some other logic also with exec() function to process file1.php and file2.php from frame_file.php..



    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited June 10, 2000).]
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    11
    Rep Power
    0
    Hi Shiju,

    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 !

    Andreas

Similar Threads

  1. 2 submit buttons in one form
    By Scatt-Neko in forum HTML Programming
    Replies: 4
    Last Post: February 25th, 2004, 02:58 PM
  2. form submit problem
    By nobertos in forum PHP Development
    Replies: 1
    Last Post: February 17th, 2004, 03:45 AM
  3. Submitting a form without a submit button
    By Monsieur in forum HTML Programming
    Replies: 7
    Last Post: February 11th, 2004, 12:18 PM
  4. submit form w/o pressing a button
    By alzheimer in forum HTML Programming
    Replies: 2
    Last Post: February 1st, 2004, 07:53 AM
  5. Replies: 1
    Last Post: January 20th, 2004, 01:35 PM

IMN logo majestic logo threadwatch logo seochat tools logo