Hey, It is rather hard to follow your question and your code so my answer is in pseudo code. ;)
In add.cgi: check if one of that params with data is present. It is often usefull to have a command param that your script looks for and acts on. Then in your form you set that command param <input type="hidden" name="cmd" value="add"> Now in your script you can check $query->param("cmd") eq "add" and if it does, add the data in, otherwise display the form.
I hope that helps. In general provide the smallest amount of code that should actualy do what you want the script to do. Then we can work with you on that, and you can take what you learn from it and use it in your bigger script. The added side effect is that 80%+ of the time you will solve your own problem while trying to make a smaller script do the same thing. Good LuckM.
In reply to Re: how to pass the value to template and retrive the result from same cgi file.
by eric256
in thread how to pass the value to template and retrive the result from same cgi file.
by srins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |