Ok, but what do I do if they do exist? How do I say to aolserver that I want to serve the menu.adp file?
Thank you On 18/03/2008, Don Baccus <[EMAIL PROTECTED]> wrote: > On Mar 18, 2008, at 11:25 AM, Xavier Bourguignon wrote: > > > > > > I have a URL mapped to a Tcl procedure like this: ns_register_proc > > POST /login login > > > > in my adp page called index.adp I have this: > > <form action ="/login" method="post"> > > username: <input type="text" name="username"><br> > > password: <input type="password" name="password"><br> > > <input type="submit" name="submit" value="Login"> > > </form> > > > > In one of my Tcl file, I have a procedure called login. This procedure > > gets called once the submit button is clicked. This procedure gets the > > username and password from the form and processese them to check that > > the username/password combination exists in the database. > > If it does then I want to show the menu.adp page, if not, I want to > > show the index.adp page again. > > > Look here: http://panoptic.com/wiki/aolserver/Ns_returnredirect > > ns_returnredirect foo > > tells the browser to redirect to the URL foo > > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to <[EMAIL > PROTECTED]> with the > body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: > field of your email blank. > -- Xavier Bourguignon -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.