Save current page as an html file?
Posted: Sat Feb 21, 2004 4:54 pm
Can someone explain to me some way using php to save the current page as an html file. Here is actually what I'm trying to do:
I've already create a page with a large form where the user can enter in variables and at the end of the form click sumbit, and right below the form is an iframe which displays the resulting page. The resulting page is created by a php script that creates a neatly formatted final page with all their variables entered in it. Now, here is where I need help. Is there some way I can create a button that allows the user to click it and have the newly created page (the resulting page in the iframe) automatically get saved on there computer, or maybe even just a prompt to allow athem to save this new html file on their computer?
If you have any ideas please let me know. Thank you.
Ben Coyour
I've already create a page with a large form where the user can enter in variables and at the end of the form click sumbit, and right below the form is an iframe which displays the resulting page. The resulting page is created by a php script that creates a neatly formatted final page with all their variables entered in it. Now, here is where I need help. Is there some way I can create a button that allows the user to click it and have the newly created page (the resulting page in the iframe) automatically get saved on there computer, or maybe even just a prompt to allow athem to save this new html file on their computer?
If you have any ideas please let me know. Thank you.
Ben Coyour