PHP: Code Editor (Creator / Replacement)?

Qub1

New member
This is easy as hell, but I don't know how to, so listen...

I want to have a page (in PHP) with a form, and in the form there is a text area, where the viewer can enter a certain html code. Then, there is a button saying "Generate!", and when you click it, the same code you entered above will be show below, but all these tags: action="something.html" will be replaced by: action="login2.php". Something.html is always different. So, is this possible? I've seen string replacement codes, but not on that edits a code given.

Thanks!
 
Back
Top