How to use PHP to change an html page?

I see some web editors like wordpress use one page to change the code of another… if i’m not mistaken. What I want to do is have a webpage that is seperate from another and in a form I can type something (html) and it will change the source code on the other page, when I hit submit, as well as show what the original html was (when I reload the page).

I know this is possible but I have no clue how that would work.

Thanks.

PHP can manipulate many elements and files such as writing to files, deleting files, and displaying different things according to if else/switch statements, as well as showing results (previous data/new data.). It all depends on what your trying to accomplish. I’m saying this with no disrespect but we need more to work with in order to help you here. Something like the start of your form like the input fields and where you want specific info to be placed from the form, such as page title, link attributes, inserting javascripts, etc. You give us a start and we can help walk you through it for the most part. From what you asked it may be a long walk (unless of course you have a good start on it), but yes it can be accomplished.

you could use something like tinymce and save the web pages in a database, this would be the easiest route I would think, I hate working from filesystems when you got the almighty mysql right there LMAO

Sponsor our Newsletter | Privacy Policy | Terms of Service