Could you post whatever you have up to now. It is difficult to give a suggestion if we do not know what
your program looks like. ie: is it using CGI. Are you using HTML::Template.
I am not sure whether you are new to Perl Monks or to cgi with perl, hence here are some links which might help you.
<cite>Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd</cite>
| [reply] [d/l] |
I highly recommend Ovid's CGI tutorial. He gives an example similar to this. | [reply] |
if what u need to know is how to prepolulate a form with data which is being passed to it , use the CGI module's param method; to use your example
#!/usr/bin/perl
use strict;
use CGI qw(cgi);
my $cgi = new CGI;
print "<html><body><form>\n<input type=text name=car value=" . $cgi->p
+aram('enter'); . "></form></body>"
this will display the value of the 'enter' parameter (i.e. car) in the html form
hth... | [reply] [d/l] |
I might be misunderstanding the question but I think you are saying you have 'form.cgi?enter=car' that has an html form on it that submits to another file (form2.cgi) But you want enter=car to go in the database as well, is that right? Just put db code into form.cgi as well.
If you really want to submit it to the database in form2.cgi, here is one way to do it: put it into a hidden field in form.cgi. It might sound like its a bad idea, but really its a horrible idea.
form.cgi:
<FORM>
<INPUT NAME="newField1">
<INPUT NAME="newFIeld2">
<INPUT NAME="enter" VALUE="car">
<INPUT TYPE=SUBMIT>
</FORM>
| [reply] [d/l] |