Actually, all I want is to be able to write the data, and redirect to new web page say it was done.
Doesn't your code already do that?
If you know of another way other than using param, it would be great. If not, all I need is the one field wriiten to the txt file.
The server has to be able to tell what you want to do. One option is to use a param like you did. That's very proper.
Another way is is by having multiple scripts. Specifically, script2.cgi would be the contents of if (param('S1') eq "Send") block, and script1.cgi would have the rest. script1.cgi would specify script2.cgi in the action field of the of the <form> element.
It's a question of prefence, but checking the param like you are already doing is probably the most straightforward.
In reply to Re^3: Updated Button Question
by ikegami
in thread Updated Button Question
by Midnite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |