Hi phil,

My chose is to use a php script for out put an get this out put in list
format.
EX: http://www.supersonique.net/php/dirdb.php?id=10
id can be 0 > 100

after I use the lis for output.


see lingo codes under :
--
-- just put ?id=10 or 1 > 100 after this url if need test online
-- http://www.supersonique.net/php/dirdb.php
--
global netID, TheData, myList

on SubmitTheData

  Sid = member("Sid").text
  infoList = ["id":Sid]
  netID = postNetText("http://www.supersonique.net/php/dirdb.php";, infoList)

end

on DisplayTheData
  a = 0

  LeStatus = getStreamStatus(netID)

  DownloadState = getprop(LeStatus,"state")
  member("TheStatus").text = DownloadState

  if DownloadState = "Complete" then
    TheData = netTextResult()
    GetData
  else
    member("Display Text").text = string(a + 1)
  end if

end

on GetData

  member("Display Text").text = TheData
  myList = value(line 2 of TheData)
  member("oid_data").text = getProp(myList, #oid)
  member("name_data").text = getProp(myList, #prodname)
  member("desc_data").text = getProp(myList, #desc) && "Euro"

end
--
--
--

I hope this help,

Mike Castro Demaria
SuperSonique Hosting Service
[EMAIL PROTECTED]
AIM : themadmike3


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Phil Gross
Sent: Monday, June 09, 2003 6:57 AM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> CGI challenged


Thanks Slava, but what I really need is to be able to put a script up on
my own site.

Putting that aside, if I send an
idd = postNetText("http://132.236.21.132/form_input.cfm";, [#name:"phil",
#password:"asdf", #comment:"hello"])

the netTextResult(idd)  I get is just the HTML for you web page. Not the
echoed parameters.

Any suggestions?
Phil

Slava Paperno wrote:

> Phil,
>
> Feel free to use http://132.236.21.132/form_input.cfm
>
> Slava
>
> At 08:54 PM 6/8/03 -0700, you wrote:
>
>> I'd like to test the getNetText and postNetText commands on a CGI
>> script, but don't know anything about writing cgi scripts.
>>
>> Is it possible to throw together a simple cgi script onto my web site
>> that will just echo back parameters I pass in?
>>
>> Thanks
>> Phil
>>
>> [To remove yourself from this list, or to change to digest mode, go
>> to http://www.penworks.com/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!]
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/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!]
>


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]

Reply via email to