From 2751ce2d2e3304179bbb9f3687e30689e3230aaa Mon Sep 17 00:00:00 2001 From: dongdigua Date: Tue, 25 Jul 2023 14:45:22 +0800 Subject: [PATCH] discard executing if not POST, fix table access --- demo.lua | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/demo.lua b/demo.lua index 8bf883b..809f8e6 100755 --- a/demo.lua +++ b/demo.lua @@ -29,10 +29,15 @@ input { Demo +

+Try Lua before +downloading it. +Enter your Lua program +or +choose one of the demo programs below.

@@ -65,7 +70,7 @@ demos["hello"] = "print[[hello shenjack]]" local query=os.getenv("QUERY_STRING") if #query > 0 then - T=demos[query] + T=demos[query] or "" end -- continue HTML began in shell script @@ -77,11 +82,12 @@ write[[
- -

Output

-

\n') write('Your program ',E,'.\n') +end