It was a demo of the html, I put it in a cgi so you see the parameters being sent. Try it with this html page
<html>
<form action="test.cgi" method="post">
<input type="submit" name="action" value="Add"/>
<input type="submit" name="action" value="Edit"/>
<input type="submit" name="action" value="Delete"/>
<input type="hidden" name="hide" value="123"/>
</form>
</html>
poj
| [reply] [d/l] |
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!
| [reply] |