I posted the following in Discussions, but upon reflection, I believe what I'm looking for amounts to a hack, so I turn to the more knowledgable for suggestions on how to do this:
I would like to create a situation where, when someone chooses to execute the Modify A Link routine and a link does not exist, the Add a Link routine executes, instead of the current practice of displaying an Error Page stating a link does not exist.
In concept, this appears fairly simple. The program appears to know from session/cookie data who is making the modify request, as the error message tells me clearly there are no links to modify. All I want to do is make an automatic assumption: when there are no links to display/list, redirect the request from modify.cgi to add.cgi. This is, in fact, such a logical assumption that many DBMS programs do this on their own.
Can someone show me what is needed here?
Alan Frayer
Don't just read the news - make the news!
Your World News - http://yourworldnews.frayernet.com
I would like to create a situation where, when someone chooses to execute the Modify A Link routine and a link does not exist, the Add a Link routine executes, instead of the current practice of displaying an Error Page stating a link does not exist.
In concept, this appears fairly simple. The program appears to know from session/cookie data who is making the modify request, as the error message tells me clearly there are no links to modify. All I want to do is make an automatic assumption: when there are no links to display/list, redirect the request from modify.cgi to add.cgi. This is, in fact, such a logical assumption that many DBMS programs do this on their own.
Can someone show me what is needed here?
Alan Frayer
Don't just read the news - make the news!
Your World News - http://yourworldnews.frayernet.com