Hi Troy,

One way to do this would be to include a hidden parameter containing
"get_results", which you could query within the target script.

When you are creating the form:
print hidden('myaction', 'get_results);  # if using CGI

When you are executing the script, put something like this in order to
call a particular   the subroutine:
if (param('myaction') eq 'get_results') { &GetResults }

Hope that helps (and is answering your question),

Rand

-----Original Message-----
From: Troy May [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 09, 2002 8:41 PM
To: Beginners CGI List
Subject: CGI with a form


Hello,

How do I link to a certain part of a CGI program with a form?  I was
thinking that I have to link to a sub-routine, but I can't get it
working. Here's the form tag I'm trying:

<FORM name=form action="$cgi?get_results" method=post align="center">

$cgi being the program itself of course and linking to the get_results
sub.

Any ideas?

Thanks!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to