P is for Practical | |
PerlMonks |
Re: CGI parameter passing (was Aardvark)by fpi (Monk) |
on Mar 12, 2001 at 04:01 UTC ( [id://63697]=note: print w/replies, xml ) | Need Help?? |
well, if aardvark is going to take some time to figure out what your problem is, I thought I would try to help out... You need to back out and give us an idea of the setup of "page one" and "page two". At first I thought that you were using a perl script to generate both pages and handle the CGI, as probably did aardvark, who suggested a dispatch table. But the more I read your second post, it looks like "page one" and "page two" are html files and you have a perl script to handle the CGI from page two. If my assumption is correct, you are then asking how to get the data inputted from "page 2" or the database to be displayed in a field in "page 1". Correct? When you are opening "file.cgi" what is file.cgi??? The database or "page 1" html? When it is being "appended" to the bottom, the bottom of what - a database or an html file?? (The ">>" usually signals an append, although I believe it should be with the filename?) When you say you want the data to appear in a field, do you mean a CGI form field? If so, the only way to do that is if you are using perl to generate the html for page one on the fly, and you stick the desired data within the form element's VALUE tag or within the TEXTAREA tags (this is basic form HTML). My suggestion is to take a step back and think about what you are doing first, so you can plan an approach instead of looking for a patch solution.
In Section
Seekers of Perl Wisdom
|
|