Hi everybody.

You must be sick of seeing my questions on this mailing list, but I
promise that I would not be asking them if I could find some good
documentation that made sense. I am not saying the existing doc is
rubbish, on the contrary, it is good, but I guess it is lacking in
content for the time being (that is my personal opinion). Anyway, here
is another of my silly questions :)

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.
My problem is that I do not know what the call is to show either of
these adp pages from my Tcl procedure. I don't want to use ns_return
200 "text/html" "some_html_here" as I want to keep html separated from
Tcl as much as possible. I just want to be able to have a call that
says for example: playFile "menu.adp". Any Tcl variables set in the
procedure would be used in the menu.adp file if needed.

Thank you
-- 
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.

Reply via email to