Thread: Return Form Answers - Perl
Results 1 to 9 of 9
12-13-2003, 09:50 AM #1
Return Form Answers - Perl
What I want to do is this (in Perl):
1) Have the user fill out an HTML Form
2) After the user clicks on SUBMIT...
...Capture the form information, and...
...return the user to an HTML page that has all the information they entered filled into a printable HTML page.
In other words, I think I want to "generate" an HTML page with all their information they entered on the form put on this page.
I have everything working except the HTML page "generation". Any ideas on where to begin with doing this?
Thanks in advance!!!
12-13-2003, 05:11 PM #2
I am by no means an expert on Perl, in any way, shape or form.
However, I googled 'echo form input with perl' and found the following site which may be useful -
Hope it helps.
12-14-2003, 09:41 AM #3
Is there a way to fill in an already existing HTML page? What I mean is that I have an HTML page that has a table on it. I want to fill in certain cells in that table from a perl script. Is that possible? Thanks again!!!!!
12-14-2003, 10:28 AM #4
The example above has Perl variable being echo'd with HTML. It doesnt matter what the HTML is, the above example should work?
12-14-2003, 10:38 AM #5Originally Posted by QuietDean
12-14-2003, 10:50 AM #6
Oh, i see. It wasn't very clear.
HTML on its own cannot do anything like this. Its like asking a newspaper to play a radio station.
You could use a html file as a template, then let Perl read in the template, replace the values, and output the result.
12-14-2003, 12:16 PM #7
That's exactly what I've done in the past. I set up a HTML template with placeholders where I wanted to insert data. The Perl program read the HTML file and when it came to a placeholder, it inserted the proper value. Placeholders can look something like ****NAME_GOES_HERE***.
12-14-2003, 01:07 PM #8Originally Posted by Enigma
12-14-2003, 10:37 PM #9
That's it exactly. I may have source around if you need a start. Can't promise though.