View previous topic :: View next topic |
Author |
Message |
csw
Joined: 10 Apr 2011 Posts: 1
|
Posted: Sun Apr 10, 2011 3:50 pm Post subject: Response Page |
|
|
I have been using PG for years, but now need to set up a group using a the GUI template. It all works, but there is one annoyance......
After the user sends the page, he is sent to the standard webgate.rsp page in the CGI directory. However, he needs to go back to his GUI page instead.
I found an old post that talks about putting the webgate.rsp in the user/group directory, but it still uses the one in the CGI directory.
Any ideas?
|
|
Back to top |
|
Tech Support
Joined: 25 Aug 2003 Posts: 4382
|
Posted: Mon Apr 18, 2011 8:22 am Post subject: |
|
|
Probably the easiest thing to do is use another hidden variable in the webpage's FORM code, that is set to the name of the webpage you want the user directed to.
Here is some additional information about the webgate.exe program and some of its options:
Code: |
$Id: README,v 1.2.2.4 2000/04/09 17:10:20 housley Exp $
Some definitions:
$ROOT the web page root directory
$CGI-BIN the directory where CGIs are stored
RESPONSE MESSAGE FILES
======================
Upon successful completion of a page, ie. there was a message, to user and
from name and no other errors. The response message is searched for in this
order.
1) If a field RESPONSE_FILE is found in the document and the filename
specified can be successfully opened it is used.
a) If the file name starts with ~/ then the path to the file
is assumed to be relative to the directory the users
documents resides in. ie. HTTP_REFERER
b) Otherwise it is assumed to be a path relative to $CGI-BIN .
2) If a file named webgate.rsp exists in $ROOT and it can be
successfully opened it is used.
3) If a file named webgate.rsp exists in $CGI-BIN and it can be
successfully opened it is used.
VALID USER LIST FILES
=====================
1) If a field VALIDLIST_FILE is found in the document and the filename
specified can be successfully opened it is used.
a) If the file name starts with ~/ then the path to the file
is assumed to be relative to the directory the users
documents resides in.
b) Otherwise it is assumed to be a path relative to $CGI-BIN .
2) If a file named webgate.usr exists in $CGI-BIN and it can be
successfully opened it is used.
FIELDS AND VARIABLES
====================
This the current list of supported/used fields. Some of these can
come from multiple sources. The source is indicated by (S) for server
(W) for web page and (F) for file. * - Required Field
NOPAGE - (W)
If this field exists the message is only sent to the Email
mailbox and not to the pager.
USER - (W) *
This is who the message is being sent to. There can be
multiple users for a single page. Additional users are
separated by either a space, comma or semi-colon. Multiple
USER fields can exist on a single page.
Also supports "Full Name" format. That is the full name
followed by the user name in parens.
ie. John Smith (jsmith2)
FRM - (W) *
Who the message is from. This can be almost anything.
MSG - (W) *
The actual message. This is free-form text. Size is only
limited by memory constraints of the system and the pager.
SUBJECT - (W)
This optional field can be used to make the message format
more similar to standard Email messages.
Also supports "Full Name" format. That is the full name
followed by the user name in parens.
ie. John Smith (jsmith2)
AUX1 - (W)
AUX2 - (W)
AUX3 - (W)
Free-form fields that have no defined use. Available for
interface designers.
Also supports "Full Name" format. That is the full name
followed by the user name in parens.
ie. John Smith (jsmith2)
VALIDATE_USER - (W)
DEFAULT VALUE = TRUE
If the field exists and does not equal FALSE and there is
a user validation file all user in the USER field will be
validated against the list in the file.
VALIDATE_SUBJ - (W)
VALIDATE_AUX1 - (W)
VALIDATE_AUX2 - (W)
VALIDATE_AUX3 - (W)
DEFAULT VALUE = <EMPTY>
If the field exists and does not equal FALSE and there is
a user validation file all user in the respective field will
be validated against the list in the file.
VALIDLIST_FILE - (W, F)
Used to specify a file to validate users against.
RESPONSE_FILE - (W, F)
Used to specify a file containing the web page to be returned
if the message was successfully passed on to the paging
engine.
BACK_REF - (W)
Use this field to specify the page for the "Back to previous"
link on the standard response page.
BAD_USERS
If users are validate and some fail validation they are placed
in the field before passing the message to the paging engine
HTTP_REFERER - (S)
The path to the document that called this CGI.
HTTP_HOST - (S)
The host name of the server this CGI was hosted on.
DOCUMENT_ROOT - (S)
The actual path to the top the web page tree. DOCUMENT_ROOT is
used in conjunction with HTTP_REFERER to define the file path
to look for the default webgate.usr and webgate.rsp files.
SERVER_ADMIN - (S)
Part of the server configuration. Supposed to contain a
"mailto" address of the web administrator. Part of the
standard error page.
HTTP_CONTENT_LENGTH - (S)
CONTENT_LENGTH - (S)
Indicates the number of characters in the message to the CGI.
Used internally
|
|
|
Back to top |
|
|