Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Automatic Generation of Form Handling Code

by shotgunefx (Parson)
on Jun 07, 2001 at 10:09 UTC ( [id://86474]=note: print w/replies, xml ) Need Help??


in reply to Automatic Generation of Form Handling Code

You might be interested in this post by merlyn. I'm working in some similar directions and what his program does now is take an html doc and spit out the CGI.pm code for it. Might be worth looking into. It has a few form handling issues right now but it's probably 95% of what you want.

If the forms are coming from in-house non-programmers, maybe you could add a non-standard attribute to the form elements to tell you what type of attribute it is. Then modify the parse to recognize this extra key and generate the code to handle it. Perhaps a required attribute as well. Then strip them out.

This way you can easily spit out a list of your required fields as well.

-Lee

"To be civilized is to deny one's nature."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://86474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found