GET Method

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

GET Method

Post by Otto »

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: Select all

function Main()
   local hPairs :=  AP_Args()
  
   ? ValToChar( hPairs )
  
return nil
 

https://www.w3schools.com/tags/ref_httpmethods.asp
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply