Thanks for pointing me to those articles; I'll study them.
1. The script is a "mess" because it came that way.
2. The script is not mine, as you seem to think.
3. $fields{'continue'}
work for another link in the same script, so I don't understand what you mean when you say it may be empty, undef, or not existing.