https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_queryexists&feed=atom&action=history
Ns queryexists - Revision history
2024-03-29T02:14:15Z
Revision history for this page on the wiki
MediaWiki 1.34.2
https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_queryexists&diff=5252&oldid=prev
Gustafn at 19:08, 7 February 2009
2009-02-07T19:08:47Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 19:08, 7 February 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l36" >Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>----</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>----</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category Documentation]] - [[Category Core Tcl API]]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category<ins class="diffchange diffchange-inline">:</ins>Documentation]] - [[Category<ins class="diffchange diffchange-inline">:</ins>Core Tcl API]]</div></td></tr>
</table>
Gustafn
https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_queryexists&diff=2641&oldid=prev
WikiSysop: imported from WiKit id 621
2004-06-11T16:35:54Z
<p>imported from WiKit id 621</p>
<p><b>New page</b></p><div>Man page: http://aolserver.com/docs/tcl/ns_queryexists.html<br />
<br />
----<br />
<br />
'''NAME'''<br />
<br />
: ns_queryexists - Check for a key in the query data that was part of the HTTP request<br />
<br />
'''SYNOPSIS'''<br />
<br />
: '''ns_queryexists''' ''key''<br />
<br />
'''DESCRIPTION'''<br />
<br />
: This command looks in the query data for the specified ''key''. If the ''key'' exists, 1 is returned; otherwise 0 is returned. The key is interpreted in a case-insensitive manner.<br />
<br />
'''EXAMPLES'''<br />
<br />
ns_register_proc POST /queryexiststest queryexiststest<br />
proc queryexiststest { } {<br />
if {[[ns_queryexists name]]} {<br />
# ...process the form...<br />
} else {<br />
ns_returnerror 400 "you need to supply your name in the form"<br />
}<br />
} ;# queryexiststest<br />
<br />
'''NOTES'''<br />
<br />
: Note that despite it's name, '''ns_queryexists''' works on POST form data as well as query string data.<br />
<br />
'''SEE ALSO'''<br />
<br />
: [[ns_queryget]], [[ns_querygetall]]<br />
<br />
----<br />
<br />
[[Category Documentation]] - [[Category Core Tcl API]]</div>
WikiSysop