Thanks
Code: Select all
on mouseup
send "timer" to me in 20 seconds
focus on nothing
set the visible of image "arrows" to true
put fld "username" into tUNA
put fld "password" into tPWA
put "username=" & tUNA & "&password=" & tPWA into tauth
post tauth to url "myurl"
if it is "0" then
cancel 1
answer "Username or Password is blank"
set the visible of image "arrows" to false
else
if it is "1" then
cancel 1
put specialfolderpath("documents") & "/text.txt" into tFile
put tauth into url("file:" & tFile)
go to card 3
else
if it is "2" then
cancel 1
answer "Invalid Username or Password"
set the visible of image "arrows" to false
else
if it is "3" then
cancel 1
answer "Account Created Successfully"
put specialfolderpath("documents") & "/text.txt" into tFile
put tauth into url("file:" & tFile)
go to card 3
end if
end if
end if
end if
end mouseup
command timer
answer "Network Unreachable"
set the visible of image "arrows" to false
end timer
end mouseup