Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Variables in form text fields from flatfile

by erikharrison (Deacon)
on May 16, 2002 at 17:51 UTC ( [id://167065]=note: print w/replies, xml ) Need Help??


in reply to Variables in form text fields from flatfile

In order to do this right, you need a complicated series of regexes. Lots of people try to write their own HTML templates, but it's harder than it looks (as you have learned - welcome to the right place!). The brunt of your solution is here on the CPAN. The next step is parsing your flatfile DB and then you should be all set.

Cheers,
Erik
  • Comment on Re: Variables in form text fields from flatfile

Replies are listed 'Best First'.
Re: Variables in form text fields from flatfile
by Anonymous Monk on May 18, 2002 at 19:25 UTC
    Thank you all for your help. I'm still lost though and I think I just didn't explain myself clearly. Here's the process.

    A customer goes to the site and fills out a form.

    Results are sent to a flatfile database (they each have a unique id).

    When they need to modify their information, they click on a link (after login) with the script.cgi?action=modify. ID is a hidden field from their login form - so it reads through the database and finds their line.

    Now the modification form displays, but it has blank fields. I want the form to display the actual value of the information from the variables in their line.

    I have tried using templates, I tried HTML::Template - nothing worked the way it was supposed to - they all come up with blank fields.

    I have seen this done on other programs, but I can't figure out how they did it. The other programs don't use HTML::Template or any special modules.

    One of the scripts I've seen that does it (FREE) is called Profile Manager.
    http://www.interlogy.com/support/download.html

    I have been trying to figure this out for over a week and my walls are about to get dented from banging my head on them. Could someone please - pretty please download this script and take a look to see what I'm missing.

    My family misses me.

    Eternally grateful and...

    eagerly waiting to feel like an idiot for not figuring it out :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-19 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found