I have a main.php that calls page1.php, page2.php and page3.php .
Then, I want to show the entire pages in my main.php.
The tricky part is that the information has to still be available after main.php has been saved as an htm AND no other file has been saved (stand alone).
I tryed execCommand(SelectAll | Copy | Paste) which works fine in the php but doesn't show up in the htm file.
Ideas in any language would be welcome (although this is a php forum).
when you submit your form, harvest the form data and use it to populate a $html variable. This would be the exact same html as your form, except with the _POST data instead of form inputs. Then you write that variable to a html file.
That gives you a permanent html file from the form... you can load that html file into an iframe on main.php for previewing if you like.