RE: [PHP] Permenant Page Generation
> I would like to create two pages using the fwrite() and fopen() > variables...btw I am a newbie: > > One form page to enter information. I've done that and used the same > format as a typical html page. method="post" action="submit.php"> > > I want the second page to show the information was submitted and have the > information create a permenant html page named after one of the text areas > on the page. > > I guess this will lead to three pages because i will have a template set > up for the created page to look like the pages that have already been > created by static html. > > In effect...the user will physically upload a file to an intranet server. > Next go to the form page and add the information on the file they just > submitted to the server. Once that information is added and the submit > button is pressed, it will trigger a html page to be created with the info > submitted. Help! Assuming $_POST['text'] would contain what is in your text area, writing it to a page is as simple as this: $fp = fopen('filename.html','w'); $fwrite($fp,$_POST['text']); fclose($fp); How easy is that? Have you even read the manual pages on fopen() or fwrite()?? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Permenant Page Generation
Hello msmecca, I would suggest reading the PHP tutorials and then taking a look at the PHP manual. If you want to save and display the same page you can use output buffering to capture the html output of your script. If you are just starting with PHP I would recommend reading tutorials or getting a good PHP book like PHP & MySQL Development, Programming PHP, or many others. You can find many PHP books on amazon.com or bn.com Jason On Sat, 2003-02-08 at 10:17, msmecca wrote: > I would like to create two pages using the fwrite() and fopen() variables...btw I am >a newbie I don't know where to start: > > One form page to enter information. I've done that and used the same format as a >typical html page. method="post" action="submit.php"> > > I want the second page to show the information was submitted and have the >information create a permenant html page named after one of the text areas on the >page. > > I guess this will lead to three pages because i will have a template set up for the >created page to look like the pages that have already been created by static html. > > In effect...the user will physically upload a file to an intranet server. Next go to >the form page and add the information on the file they just submitted to the server. >Once that information is added and the submit button is pressed, it will trigger a >html page to be created with the info submitted. Help! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Permenant Page Generation
I would like to create two pages using the fwrite() and fopen() variables...btw I am a newbie I don't know where to start: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named after one of the text areas on the page. I guess this will lead to three pages because i will have a template set up for the created page to look like the pages that have already been created by static html. In effect...the user will physically upload a file to an intranet server. Next go to the form page and add the information on the file they just submitted to the server. Once that information is added and the submit button is pressed, it will trigger a html page to be created with the info submitted. Help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Permenant Page Generation
I would like to create two pages using the fwrite() and fopen() variables...btw I am a newbie: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named after one of the text areas on the page. I guess this will lead to three pages because i will have a template set up for the created page to look like the pages that have already been created by static html. In effect...the user will physically upload a file to an intranet server. Next go to the form page and add the information on the file they just submitted to the server. Once that information is added and the submit button is pressed, it will trigger a html page to be created with the info submitted. Help!
RE: [PHP] Permenant Page Generation
> I would like to create two pages: > > One form page to enter information. I've done that and used the same > format as a typical html page. method="post" action="submit.php"> > > I want the second page to show the information was submitted and have the > information create a permenant html page named after one of the text areas > on the page. You use fopen() to create a file and fwrite() to write to it... hopefully you can handle it from there... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Permenant Page Generation
I would like to create two pages: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named after one of the text areas on the page. I guess this will lead to three pages because i will have a template set up for the created page to look like the pages that have already been created by static html. In effect...the user will physically upload a file to an intranet server. Next go to the form page and add the information on the file they just submitted to the server. Once that information is added and the submit button is pressed, it will trigger a html page to be created with the info submitted. Help!
[PHP] Permenant Page Generation
I would like to create two pages: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named after one of the text areas on the page. I guess this will lead to three pages because i will have a template set up for the created page to look like the pages that have already been created by static html. In effect...the user will physically upload a file to an intranet server. Next go to the form page and add the information on the file they just submitted to the server. Once that information is added and the submit button is pressed, it will trigger a html page to be created with the info submitted. Help!