October 16th, 2012, 01:16 PM
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?
October 16th, 2012, 01:41 PM
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.
October 16th, 2012, 02:01 PM
No, if your form is saved in a file called "myform.php", use this code on the page you want the form to appear ...
Originally Posted by maineman
You can style the DIV and myform.php has visibility of your variables used in the "calling" page.
echo "<div id='myform'>";
"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