Posted: Sun Nov 24, 2013 3:25 am Post subject: Lua script for fetching data from database
Ok so after trying hard n googling like crazy i somehow managed to figure out the login script using lua which posts data to the site
Code:
http = require("socket.http")
local username = "abc"
local password = "123"
local post = "username"..username.."&password="..password
logon = http.request("mysite.com/login.php" , post)
but how to make a script which checks the database n validates if their is the account and then functions further ? any help on this ? Darkbyte ???
Put the check directly into the login.php, i guess it will be easier and more secured than using lua for this...
actually I wanted to make a script like that for my program so user needs to log in in the program using my websites Id b pass and I am making my program with lua
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum