postNetText

  how to store data with postNetText
postNetText cgi netLingo highscore




  postNetText, Using D7 code
At 12:10 26.02.99 -0600, WthmO wrote:
>> Andersson wrote:
>
>> I´m trying to make a game with a highscoretable that is suppose to
>> save to a server via a little simple cgi-script.
>
>This came up earlier today and most of the week.
>
>Here's something from Bernard Lang; <snipety>

In an attempt to unite the two dominant threads of the day here is a d7.syntax 
variation of Bernard's example which does POST instead of GET.


-- movie script
on checknetTextResult
  Global netId
  if voidP(netId) then return
  if netDone(netID) then
    tmp = netTextResult()
    member( "Result").html = tmp
  end if
end

on ClickButtonPOST
  Global netId
  member ("Result").text = ""
  URL = "http://www.inx.de/user-cgi-bin/dp_parse.pl?" 
  name = "John+Smith"
  SSnum = "1234567890"
  postText = "name=" & name & "&number=" & SSnum 
  netID = postNetText(URL,postText) 
  member ("Result").text = "waitingPost"
end
-----------

-- frame script
on exitFrame
  checknetTextResult
  go the frame
end

-----------


Now while the playhead loops on that frame, write the command ClickButtonPOST
in the message window (or make yourself a button for this), wait an instant and
member "result" (which should be a #text) displays:


Submitted via POST

1: entry{"name"} = John Smith
2: entry{"number"} = 1234567890




Home shock + cgi Bits 'n pieces Director Lingo Shocklets Contact










pageID=l_postNetText