rp_getform (public, deprecated)
rp_getform
Defined in packages/acs-tcl/tcl/request-processor-procs.tcl
Deprecated. Invoking this procedure generates a warning.
This proc is a simple wrapper around AOLserver's standard ns_getform proc, that will create the form if it doesn't exist, so that you can then add values to that form. This is useful in conjunction with rp_internal_redirect to redirect to a different page with certain query variables set. DEPRECATED: modern ns_getform from NaviServer will never return the empty string, assuming that we are in a connection. When we are not in a connection, it makes little sense that we set request variables.
- Returns:
- the form ns_set, just like ns_getform, except it will always be nonempty.
- Author:
- Lars Pind <lars@pinds.com>
- Created:
- August 20, 2002
- See Also:
- ns_getform
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ad_log_deprecated proc rp_getform # The form may not exist, if there's nothing in it if { [ns_getform] ne "" } { # It's there return [ns_getform] } { # It doesn't exist, create a new one # This is the magic global Tcl variable that AOLserver uses # to store the ns_set that contains the query args or form. global _ns_form # Simply create a new ns_set and store it in the global _ns_set variable set _ns_form [ns_set create] return $_ns_form }XQL Not present: Generic, PostgreSQL, Oracle