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

    Join Date
    Sep 2012
    Posts
    112
    Rep Power
    7

    Open form in dynamic div of page


    How do you open a form and open it so that it fits inside a certain div? It currently opens and take up the whole screen. Ideally I would want it to open inside my dynamic div.

    Do you have to put something like a target redirector in the form?
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6351
    What do you mean "open a form"?
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,112
    Rep Power
    487
    Originally Posted by maineman
    How do you open a form and open it so that it fits inside a certain div? It currently opens and take up the whole screen. Ideally I would want it to open inside my dynamic div.

    Do you have to put something like a target redirector in the form?
    No, if your form is saved in a file called "myform.php", use this code on the page you want the form to appear ...

    PHP Code:
    echo "<div id='myform'>";
    include 
    "myform.php";
    echo 
    "</div>"
    You can style the DIV and myform.php has visibility of your variables used in the "calling" page.
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984

IMN logo majestic logo threadwatch logo seochat tools logo