Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Form Making

by Vautrin (Hermit)
on Mar 15, 2004 at 19:00 UTC ( #336779=note: print w/replies, xml ) Need Help??


in reply to Form Making

I usually create a line like ##FOOBAR## wherever I want the value of the users $foobar variable to be inserted, which I fetch from a database. I then just run a $web_page =~ s[##FOOBAR##][$foobar]sg; for the web page. It's kind of crude but it works really well. I suppose you maybe want to do something more complicated? What exactly are you looking to do?

Want to support the EFF and FSF by buying cool stuff? Click here.

Replies are listed 'Best First'.
Re: Re: Form Making
by BUU (Prior) on Mar 15, 2004 at 22:25 UTC
      I usually don't have very complicated web pages so it's always seemed easy enough to do what I've done. Can you be more specific then "For the love of god, HTML::Template"? You don't make a very convincing case for why I should learn an entire templating system for a few substitutions. Now, I am sure you have good reasons for why I should use HTML::Template, but can you elaborate? I'd love to improve my code.

      Want to support the EFF and FSF by buying cool stuff? Click here.
        I could state most of my reasons, but I think other people have stated them far more convincingly then I have. So I'll just refer you to a couple of interesting threads/articles.

        Choosing a Templating System
        I am about to write my very own templating module..
        A general search

        In short the reason for using a module for this as the same as the reason for using a module for anything else. The module is (usually) extremely well tested and highly developed. It's been used by large numbers of different people so must of the bugs have been worked out and the interface is usually well suited for the task at hand.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-05-18 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (71 votes). Check out past polls.

    Notices?