Generating HTML file with link in database

wxdqz

New Member
If a user was submitting a large amount of text in a form, and I do not want to BLOB or TEXT it, is there a way that I can generate an html file from the form, and then put a url to that file in a database

Ex Form to be filled out

Member ID -

Name of Lesson -
Decription of Lesson -
Lesson Body -

Is there a way that I can make the lesson body field generate an html file, with headers and footers ?

ex. <!-- w --><a class="postlink" href="http://www.domain.com/lessons/lesson8.html">www.domain.com/lessons/lesson8.html</a><!-- w -->

And then have the table where the rest of the form is going end up like this?

ID - Primary Key (ex 2)
memberID - Foreign Key to Members Table (ex 45)
name (ex How to Write PHP)
desc (ex all you need to now about writing PHP)
url (ex <!-- w --><a class="postlink" href="http://www.domain.com/lessons/lesson8.html">www.domain.com/lessons/lesson8.html</a><!-- w --> )

?
 
Back
Top