[Kepler-Project] how to use POST method in lua??

venice chong venicechong at gmail.com
Fri Dec 21 06:04:13 GMT+3 2007


how to use POST method in lua??

for example i have a page call login.lp like below in brief

<form name="login" action="main.lp" method="post" onsubmit="return
hash(this,'main.lp')" autocomplete = "off" >
<input type="text" name="username" id="username" value="" size="20"
maxLength="12">
<input type="password" name="passwd" id="passwd" value="" size="20" >

and in hash function i do some hashing/encryption before go to main.lp
and the output from it will append on the url like main.lp
?username=blahblah&passwd=
and in main.lp will get the value from url as like what php did

but in lua..how??

if i use cgilua.POST.passwd in main.lp it will get value client
typed...instead of after-hashed passwd..
like :
<input type="password" name="passwd" id="passwd" value="<%= passwd %>"
size="20" >

i dun wan get direct from the form..but do some javascript stuff and then
send the output...
how can it be implemented??
hope anyone can help me....thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.luaforge.net/pipermail/kepler-project/attachments/20071221/fef2dc42/attachment.html


More information about the Kepler-Project mailing list