October 16th, 2012, 03:01 PM
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 ...
echo "<div id='myform'>";
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