Hey all, first off I'm new round here...so...hello.
Back to the question....
Yep, just finished a project like this...first you need a server, right? If
you have access to a server, you need to write a quick little server script
in something like perl,asp, or java (depending on your server OS and your
knowledge of server-side programming) that gives responses to your
projector. If you've got the server side down pat, you can use Lingo's
method -
aVar = getNetText("http://serverName.com/userCheck.asp?userid="&user)
where user is a Lingo variable that you have the user fill in. The short
point is that the server responds to this just as if you had typed it in a
browser. In your server script you can have it spit out a 1 or 0 (or another
response like TRUE or FALSE) if the user name was valid or invalid. Then all
you need to do is check
netTextResult(aVar)
for 1 or 0 and handle the situation accordingly. Here's my exitFrame code:
on exitFrame me
if shouldCheckUser then
if checkedForUser = FALSE then
user = gUserName
-- put user&"!!!!!!!!!!!"
gNetID = getNetText("http://serverName/userCheck.asp?userid="&user)
checkedForUser=TRUE
else
put "checking for status"
if netDone(gNetID)=TRUE then
if netError(gNetID)<>"OK" then
put netError(gNetID)
alert("There has been a network error")
destination = "packageComplete"
else
put "we're good to go"
serverResponse=netTextResult(gNetID)
put serverResponse
if serverResponse contains "TRUE" then
put "authorized"
destination = "DownloadFile"
else if serverResponse contains "FALSE" then
put "denied"
gTries=gTries+1
destination = "invalidPassword"
end if
end if
else
put "waiting"
destination = VOID
end if
end if
end if
if destination = VOID then
go to the frame
else
put destination &"########"
go to destination
end if
end
The database thing is a bit more complicated to deal with, but this method
of sending information to a server and getting responses is pretty common.
Let me know if I need to explain this more, I'm typing kind of quick here :)
Evan
>From: "jayp" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: <lingo-l> <Lingo> User Online Accounts
>Date: Wed, 31 Oct 2001 16:27:27 -0000
>
>Dear Anyone,
>
>Im a student in the uk doing my final year. My group and i are making a
>cdrom which interacts with a website to help students learn different
>languages. One function that we have decided is vital to our project is
>to give each user a profile or account.
>The user would start the cd and would be asked to either register or
>enter in there username (or email address) and password. The validation
>should be checked from an online database or something and allow to
>proceed depending on the outcome of the submitted password. I would like
>the user to be able to enter a few details about themselves and add that
>to there account...ie date of birth, nationality etc.
>
>Im sure this can be done, but dont know how. Please can you help a
>struggling student................
>
>Thanks for your time..................
>
>Jon.
>
>University of Gloucestershire, UK
>
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]