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

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I'm not sure if this message is an HTML or PHP question,
    I have a header frame and a body frame. I want the php file that is loaded from a submit button in the body frame to grab a variable from the header frame. That variable is used when I insert the data into the sql database.
    Thanks
    Jon Reid
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    Eh, not sure I really follow here..

    "IF" I follow you, you want to pass a value to PHP in a framed site..

    frankly, about the only way I can think to do this is perhaps using an "onLoad" event in the "header" frame, the onload would have to specify the "target" ie.. your content frame, or whatever frame you want to field the value.

    In short, it sounds like a JS function would have to be called.

    Otherwise, you have to find a way to get your visitor to "click" a link and use a get method..

    even the onLoad method will provoke a get method.

    again, I'm not real sure.. my first try would be something like..

    onLoad="passIt('mylink.php?name=value')";

    <script>
    function passIt(link) {
    my js to pass the link to the contentFrame
    }
    </script>

    That's about the only thing I can think of, and just might do the trick..

    Actually.. why not just pass the variables when you call the frameset?

    specify the variable in the document that loads your frames, since you have to call the specific document.. you could add your get name/value pairs to the frameset...

    This could be used to produce output based on your visitor, or whatever..

    just an added thought.

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.

    [This message has been edited by Robert_J_Sherman (edited October 13, 2000).]

Similar Threads

  1. Replies: 7
    Last Post: February 16th, 2004, 02:55 PM
  2. send variables from html to external file
    By Alicia in forum Visual Basic Programming
    Replies: 6
    Last Post: February 1st, 2004, 11:12 AM
  3. Can php be used in html files
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 29th, 2004, 01:50 PM
  4. all-in-one php script displaying html
    By emzyme in forum PHP Development
    Replies: 5
    Last Post: January 27th, 2004, 07:07 AM
  5. php n00b. Put a php file into an html template?
    By WorldBuilder in forum PHP Development
    Replies: 3
    Last Post: January 25th, 2004, 08:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo