FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour GET Method
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
GET Method
Posted: Thu Apr 02, 2020 12:02 PM
Question on SLACK
A question I have ...
An application / web page, for example the hblog, opens by default with index.prg ...
How can I send a parameter to index.prg and receive it to be able to use it in the application / website ???
Imagine that I have a desktop application to which I send you to open my website, but I need to know that it is "so-and-so" who calls me on the website.
mi.ip.mi.web / index.prg <parameter>
This is what would be more or less
And then in my web application, just like this ...
myparameter: = PValue (1)

Please call like this: index.prg?name1=value1&name2=value2

your index.prg
Code (fw): Select all Collapse
function Main()
   local hPairs :=  AP_Args()
  
   ? ValToChar( hPairs )
  
return nil



https://www.w3schools.com/tags/ref_httpmethods.asp

Continue the discussion