Gossamer Forum
Quote Reply
If not modify, add
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
Subject Author Views Date
Thread If not modify, add afrayer 3527 Oct 25, 2004, 8:38 AM
Thread Re: [afrayer] If not modify, add
afinlr 3426 Oct 25, 2004, 9:20 AM
Thread Re: [afinlr] If not modify, add
afrayer 3413 Oct 25, 2004, 10:13 AM
Thread Re: [afrayer] If not modify, add
afinlr 3412 Oct 25, 2004, 10:20 AM
Thread Re: [afinlr] If not modify, add
afrayer 3417 Oct 25, 2004, 10:59 AM
Thread Re: [afrayer] If not modify, add
afinlr 3408 Oct 25, 2004, 11:02 AM
Post Re: [afinlr] If not modify, add
afrayer 3415 Oct 25, 2004, 11:25 AM