Code: Select all
on mouseUp
put fld "username" into tUNA
put fld "password" into tPWA
put "http://" & tUNA & ":" & tPWA & "\" & "@www.example.net/index.html" into compiled
saveUNandPW
end mouseUp
command saveUNandPW
put specialfolderpath("documents") & "/text.txt" into tFile
put compiled into url("file:" & tFile)
go to card 3
end saveUNandPW
Code: Select all
on mouseUp
put fld "username" into tUNA
put fld "password" into tPWA
put "http://" & tUNA & ":" & tPWA & "\" & "@www.example.net/index.html" into compiled
## post command inserted here with proper URL and above example.net changed
##in theory after post completes
if response from server is 1 then
continue
else
##report error here
saveUNandPW
end mouseUp
command saveUNandPW
put specialfolderpath("documents") & "/text.txt" into tFile
put compiled into url("file:" & tFile)
go to card 3
end saveUNandPW