in reply to RE: Re: Linking Forms with CGI
in thread Linking Forms with CGI

I was just thinking, by the way. The examples I've seen, so far,created forms within the PERL-CGI script itself. But I have a ready ".htm" file which is a form whic I created in Dreamweaver 3. And I have this certain database in mySQL. Is it possible for me to use the FORM I created in Dreamweaver, and just call the cgi file to process the form?

Replies are listed 'Best First'.
RE: RE: RE: Re: Linking Forms with CGI
by Ovid (Cardinal) on Jun 14, 2000 at 19:32 UTC
    You shouldn't have a problem with that. Just make sure your FORM tag has ACTION pointing to your cgi script.
    <FORM METHOD="post" ACTION="pathtoscript/somescript.cgi">
RE: RE: RE: Re: Linking Forms with CGI
by Michalis (Pilgrim) on Jun 14, 2000 at 17:52 UTC
    Of course there is a way to use the form you created.
    Let's suppose the form calls a script named test.cgi.
    In this script you write:
    use CGI qw/:cgi/;
    Then you may use the param('name') where name is the form-element name in your page