in reply to Re^2: Updated Button Question
in thread Updated Button Question
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Updated Button Question
by Midnite (Acolyte) on Aug 12, 2004 at 16:23 UTC | |
by ikegami (Patriarch) on Aug 12, 2004 at 16:44 UTC |