Would anyone please direct me to a resource with a the following script.

I want to fill in the text for a on-the-fly, html page where submitting those details, a page is created or updated.

Preferably in perl but php would be a possible alternative. (i know even less about php)