Ok, so I wondered if it was possible to create some kind of form with text boxes or something, and make whatever's in them be stored in variable (ie. $title) and then insert those values into a template on a new .php-page with the variables.

I don't know if this is possible in PHP, but I think it might be


thanks

Recommended Answers

All 3 Replies

Member Avatar for diafol

yes

ok, but how

i'm a beginner in PHP

Member Avatar for diafol

You didn't ask how, you just asked if it was possible.

your form takes info like title etc
you pass it to another file
this file builds up a string which includes a DTD, head, body etc with any text from the form
the string is then saved to a file using something like file_put_contents()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.