Jump to content

PHP and Forms to create multiple webpages


chris10

Recommended Posts

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!

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.