Просмотр исходного кода

Improve description of CivetServer::getParam(connection, ...)

bel 11 лет назад
Родитель
Сommit
fc70af612a
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      include/CivetServer.h

+ 4 - 1
include/CivetServer.h

@@ -159,7 +159,10 @@ public:
      * occurance value is a zero-based index of a particular key name.  This
      * should not be confused with the index over all of the keys.  Note that this
      * function assumes that parameters are sent as text in http query string
-     * format, which is the default for web forms.
+     * format, which is the default for web forms. This function will work for
+     * html forms with method="GET" and method="POST" attributes. In other cases,
+     * you may use a getParam version that directly takes the data instead of the
+     * connection as a first argument.
      *
      * @param conn - parameters are read from the data sent through this connection
      * @param name - the key to search for