in reply to Re^3: Pass variable values from HTML to CGI using "onclick"
in thread Pass variable values from HTML to CGI using "onclick"
Poj, I get you. Add/Delete/Search is calling the cgi, but what I meant is in my CGI file i have 3 functions :
sub Add{bla bla}
sub Search, sub Delete.
My idea was to pass a value so that I could create a condition, something like:
If value=0
Add();
else if value=1
Search();
else
Delete();
I am new to perl, so please don't mind my syntax. I will appreciate if you could explain how I could link your html values with these functions.
Thanks.
UPDATE :
I just ran the CGI alongwith it. Got that the parameter is getting passed. Thanks Poj!