From 3982c46ac439fda2e31f769852f1bda6ee2fe5a8 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Sat, 26 May 2012 00:14:32 +0300 Subject: [PATCH] Update examples/tutorial/step_3.wiki --- examples/tutorial/step_3.wiki | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/tutorial/step_3.wiki b/examples/tutorial/step_3.wiki index d45abfe4..973d398d 100644 --- a/examples/tutorial/step_3.wiki +++ b/examples/tutorial/step_3.wiki @@ -25,9 +25,9 @@ or go to [[step_4.wiki|step 4]] Result.set_title ("EWF tutorial / Hello World!") --| Check if the request contains a parameter named "user" --| this could be a query, or a form parameter - if attached req.string_item ("user") as f_user then + if attached req.string_item ("user") as l_user then --| If yes, say hello world #name - Result.set_body ("Hello " + f_user.string + "!") + Result.set_body ("Hello " + l_user + "!") --| We should html encode this name --| but to keep the example simple, we don't do that for now. else @@ -41,8 +41,8 @@ or go to [[step_4.wiki|step 4]] ]" ) end - --| note: - --| 1) Source of the parameter, we could have used + --| note: + --| 1) Source of the parameter, we could have used --| req.query_parameter ("user") to search only in the query string --| req.form_parameter ("user") to search only in the form parameters --| 2) response type