Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

PERL TO HTML FORM

by Anonymous Monk
on Jan 05, 2002 at 20:02 UTC ( #136542=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

hi all, HOW CAN I PUT SOME DATA INTO THE HTML FORM TEXT FIELDS USING CGI AND PERL. IS THIS POSSIBLE PLZ HELP ... Thanks in advance -Kiran

Comment on PERL TO HTML FORM
Re: PERL TO HTML FORM
by jonjacobmoon (Pilgrim) on Jan 05, 2002 at 20:28 UTC
    Why are you yelling? You seem very excited.... :)

    What you need is a template processing solution. I use Template::Toolkit myself. What you can do is:

    <input type="text" name="foo" value="[% bar %]">

    in you html. The html form is printed by the template processor (ie. Template::Toolkit or whatever), and all variables within the special tags (in this case [% %} are replaced.

    I am sure that CGI.pm offers a solutions as well, but I don't use it for this so I don't know the syntax but you easy research that if you decide to go that way.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-07-28 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (189 votes), past polls