chris10 Posted June 11, 2009 Share Posted June 11, 2009 Hi all, Quick question..I want to create a script where I can create webpages from a form on a webpage. For exapme, the from would have 10-15 different fields for a client for example, it would have name, address, special instructions, etc etc. I want the information I put in these fields to spit out a webpage named "clientname.htm" and then put all that information from the form into a table. Is this fairly easy to do with PHP? I am a newbie and the webserver I am using at work I can't get authorization to use MySQL or anything like that. I just want a simple script that will do the above and create html pages. Can anyone help? Thanks! Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/ Share on other sites More sharing options...
haku Posted June 11, 2009 Share Posted June 11, 2009 It's pretty basic PHP. Google some php tutorials and get learning. Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853449 Share on other sites More sharing options...
dharvell Posted June 11, 2009 Share Posted June 11, 2009 Hi all, Quick question..I want to create a script where I can create webpages from a form on a webpage. For exapme, the from would have 10-15 different fields for a client for example, it would have name, address, special instructions, etc etc. I want the information I put in these fields to spit out a webpage named "clientname.htm" and then put all that information from the form into a table. Is this fairly easy to do with PHP? I am a newbie and the webserver I am using at work I can't get authorization to use MySQL or anything like that. I just want a simple script that will do the above and create html pages. Can anyone help? Thanks! Somebody, please correct me if I am wrong, but: If you do not have a database to put the information gathered at the form, there is no way to create a permanent page from the information gathered in the form. Without a means to hold the information (the database), all you can do is have the results from the page displayed to the person who entered the information in the form, as soon as the client hits the SUBMIT button. But, once that page is closed, all of that information is lost. To keep the information on the page, you would have to enter the information gathered in the form into a database, then have the page that is displayed to the public query the database for the information, then display that information using the results gathered from the database query. I suppose, one thing you COULD do is, fill in the form, have the page display what you just filled in, copy the HTML that is generated from those results, then upload the generated HTML to the web server. Understand, though, that those pages would then become static pages. In order to change the information, you would have to fill in the form, again, re-save the HTML created, then re-upload that HTML to the server, and so on. Again, if I am wrong, please somebody correct me. But, that is my understanding of it. Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853456 Share on other sites More sharing options...
haku Posted June 11, 2009 Share Posted June 11, 2009 That's not entirely true. It can be done with a flatfile database, which is basically writing your own documents that hold the data. Edit: well actually, you are entirely correct, it can't be done without a database. A flatfile database is still a database. But the point is that it isn't a database that needs installing, so he could still do it even under his limitations. Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853459 Share on other sites More sharing options...
chris10 Posted June 11, 2009 Author Share Posted June 11, 2009 It's pretty basic PHP. Google some php tutorials and get learning. Well if I knew what to google, then I wouldnt be here.. What are some terms I could put in? Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853460 Share on other sites More sharing options...
chris10 Posted June 11, 2009 Author Share Posted June 11, 2009 I am the only one thats going to see these html pages that are created, so why would I need a database? Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853465 Share on other sites More sharing options...
haku Posted June 11, 2009 Share Posted June 11, 2009 'php tutorials' Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853467 Share on other sites More sharing options...
haku Posted June 11, 2009 Share Posted June 11, 2009 I am the only one thats going to see these html pages that are created, so why would I need a database? A database stores the data that the user enters. Without a database, you have no way of retaining their data. Link to comment https://forums.phpfreaks.com/topic/161755-php-and-forms-to-create-multiple-webpages/#findComment-853468 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.