Jump to content

Need an opinion


prcollin

Recommended Posts

Ok what would be the easiest way to have a form, have the values entered into the form placed into variables throught the website design code and then have the final code submitted to a directory as an .html or .php file.

 

basically i just want a website that people enter some values in a form and it automatically places them int heir spots.

 

I have a form input for "Page Title"  so I have <input type="text" name="title">

Then there is the page design part that says like

 

<title> and I want it to be able to read the input and auto populate that design

Link to comment
https://forums.phpfreaks.com/topic/106494-need-an-opinion/
Share on other sites

If I am understanding you correctly you want the user to be able to enter the information that will be used as part of the "template" for all the pages on the site.

 

I see two choices:

 

1. Save the data to a database and create the pages on-the-fly. This allows easy updating of those values at a later time.

 

2. Use the input to create a flat file PHP script that all the otehr pages use. If the pages rarely change this might be an easier solution, especially if you don't have a database or do not want to learn how to use one.

Link to comment
https://forums.phpfreaks.com/topic/106494-need-an-opinion/#findComment-545855
Share on other sites

FYI: For the "flat-file" implementation I was not suggesting to use a flat file as a database (although that is another valid option). I meant to use a template and then populate the user values as appropriate and then write the result as an HTML or PHP file.

 

No i just want someone to fill out a form and it submit to a directory as an hmtl or php file.  thats all

Link to comment
https://forums.phpfreaks.com/topic/106494-need-an-opinion/#findComment-546153
Share on other sites

FYI: For the "flat-file" implementation I was not suggesting to use a flat file as a database (although that is another valid option). I meant to use a template and then populate the user values as appropriate and then write the result as an HTML or PHP file.

 

No i just want someone to fill out a form and it submit to a directory as an hmtl or php file.  thats all

 

Isn't that what I just said? Use the input from the user with a template to create an HTML or PHP file?

Link to comment
https://forums.phpfreaks.com/topic/106494-need-an-opinion/#findComment-546162
Share on other sites

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.