PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Various
  • Encoding parameters
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Calls an external script (.asp or .php) and returns the result in a string. An HTTP request is performed: you have the ability to use a POST method or a GET method.
Example
// Runs the "Script1.php" script found at the root of the Web site
// and returns the result in MyBuffer
MyBuffer is Buffer
MyBuffer = ScriptExécute("/Script1.php")
// Login page in asp. Sends 3 parameters with the POST method
MyBuffer is Buffer
MyBuffer = ScriptExecute("/ASP/Login.asp", ...
"Name=BOB&Pass=My+Secret&Lang=3", True)
// Retrieve the "home" page of the "server2" site
MyBuffer is Buffer
MyBuffer = ScriptExécute("http://www.server2.csom/default.htm")
HTMSTC_HTMLStatic = MyBuffer
Syntax
<Result> = ScriptExecute(<Script Name> [, <"Name1=Param1&Name2=Param2&...">  [, <Runtime Method>]])
<Result>: Buffer or character string
Result of ASP script. In most cases, this result can be displayed by StringDisplay.
<Script Name>: Character string
Address of the script. The script URL can have the following format:
  • "http://ServerName/Address.asp": the Address.asp script is found on the "ServerName" computer
  • "/Scripts/MyScript.php": MyScript.php is found on the current server, in the "/Scripts" sub-directory of the site.
  • you have the ability to use a secure address (https)
<"Name1=Param1&Name2=Param2&...">: Optional character string (with quotes)
Parameters intended for the script. This string contains for each parameter:
  • the parameter name
  • the = sign
  • the parameter value
Two parameters are separated by the & sign.
<Runtime Method>: Optional boolean
  • True to run a POST method,
  • False (default value) to run a GET method.
Remarks

Various

ScriptExecute is slower than ScriptDisplay.

Encoding parameters

The content of parameters is automatically encoded to get a valid URL:
  • transformation into UTF-8 (according to the options of the page and project)
  • encoding of special characters
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment