Page 2 of 2

How receive data from a php script

Posted: Tue Sep 02, 2014 9:59 pm
by falsam
Many thanks for your help Peter.

Re: How receive data from a php script

Posted: Mon Sep 29, 2014 4:52 pm
by JackWebb
Not sure I fully understand the question. Maybe try a different approach. Does this work for your situation?

Code: Select all

EnableExplicit

Declare CloseWindowEvent()

Enumeration ; - Windows
  #MainWin
EndEnumeration
Enumeration ; - Gadgets
  #Editor
EndEnumeration

If Not OpenWindow(#MainWin, 10, 10, 400, 150, "Hello World", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
  CloseWindowEvent() ; end
EndIf

WebGadget(#Editor, 10,  10, 380, 130, "http://s242132022.onlinehome.fr/receivedata.php")

BindEvent(#PB_Event_CloseWindow, @CloseWindowEvent())

Procedure CloseWindowEvent()
  CloseWindow(EventWindow())
EndProcedure

Good Luck!
Jack 8-)