comparison website/src/examples/upload-and-email.luan @ 1178:49cf706c326a

serve_for_nginx on port 8081
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Feb 2018 22:44:06 -0700
parents 21d157b153fe
children
comparison
equal deleted inserted replaced
1177:26533dd4cd09 1178:49cf706c326a
10 port = 2525; 10 port = 2525;
11 }.send 11 }.send
12 12
13 local function form() 13 local function form()
14 %> 14 %>
15 <!doctype html>
15 <html> 16 <html>
16 <body> 17 <body>
17 <h1>Upload and Email</h1> 18 <h1>Upload and Email</h1>
18 <form method="post" enctype="multipart/form-data"> 19 <form method="post" enctype="multipart/form-data">
19 <p>Email: <input name=email></p> 20 <p>Email: <input name=email></p>
25 <% 26 <%
26 end 27 end
27 28
28 local function sent() 29 local function sent()
29 %> 30 %>
31 <!doctype html>
30 <html> 32 <html>
31 <body> 33 <body>
32 <h1>Upload and Email</h1> 34 <h1>Upload and Email</h1>
33 <p>file sent</p> 35 <p>file sent</p>
34 </body> 36 </body>