diff --git a/07_webapps/7-04_forms.asciidoc b/07_webapps/7-04_forms.asciidoc index bc0e54cd..fbbfcf94 100644 --- a/07_webapps/7-04_forms.asciidoc +++ b/07_webapps/7-04_forms.asciidoc @@ -42,7 +42,7 @@ To follow along with this recipe, clone the https://github.com/clojure-cookbook/ "Show a form requesting the user's name, or greet them if they submitted the form" [req] - (let [name (get-in req [:params "name"])] + (let [name (get-in req [:form-params "name"])] (if name (show-name name) (show-form)))) @@ -78,4 +78,4 @@ Note that the form keys are passed in as strings, not keywords. ==== See Also * <> -* Ring's http://bit.ly/ring-parameters[parameters documentation] \ No newline at end of file +* Ring's http://bit.ly/ring-parameters[parameters documentation]